That is essentially how the Microsoft Letter Wizard works. That should bring your command to the right side. Step 3: Select the macro you created and then click the Add button. Select Tools, and then select Customize (or right-click the toolbar and select Customize). This tech-recipe contains the steps to follow: 1. You can also assign them to your custom macros. Step 2: In the drop-down menu on the left, choose Macros. You can assign keyboard shortcuts to any of Microsoft Word’s commands (or change the existing keyboard shortcuts).
#ASSIGN MACRO SHORTCUT KEYS WORD 2013 CODE#
If the document is protected (using Tools + protect Document), and if the MacroButton foeld is in a protected area of the document, you will need to unprotect the document immediately before the line that starts:Īnd reprotect it immediately after that line - e.g.:ĪctiveDocument.Protect Type:=wdAllowOnlyFormFields, _Īlternatively, if you did want to use a UserForm in an AutoNew macro, and wanted the UserForm to have a button that allowed your users to pick a name from the Outlook Address Book, you could use almost exactly the same code as provided in this article to do that as well. Step 1: Go to Customize Quick Access Toolbar -> More Commands. If your users experience either of these problems, it is down to an Outlook configuration issue, and you should post the details in the newsgroup. The user may find that the first time they run the macro in each Word session, they might see the "Choose profile" dialog and have to click OK:Īnd/or, they may find that the "Select Names" dialog displayed by the macro doesn't automatically display their contacts, and they have to select the drop-down and select "Contacts" every time. 'Insert the name at the current insertion point StrName = Application.GetAddress(AddressProperties:=strCode, _ 'Insert the modified address at the current insertion point
![assign macro shortcut keys word 2013 assign macro shortcut keys word 2013](https://i.stack.imgur.com/EB69d.png)
StrAddress = Left(strAddress, Len(strAddress) - 1) StrAddress = Left(strAddress, iDoubleCR - 1) & _ IDoubleCR = InStr(strAddress, vbCr & vbCr) 'Eliminate blank paragraphs by looking for two carriage returns in a row 'If user cancelled out of 'Select Name' dialog, quit
![assign macro shortcut keys word 2013 assign macro shortcut keys word 2013](https://i.ytimg.com/vi/YHFurAk9fWM/maxresdefault.jpg)
RecentAddressesChoice:=True, UpdateRecentAddresses:= True) UseAutoText:= False, DisplaySelectDialog:=1, _ StrAddress = Application.GetAddress(AddressProperties:=strCode, _ 'Display the 'Select Name' dialog, which lets the user choose Microsoft Word 2013 Learning Goals and Objectives of 8 MOS Skills Record simple macros 1.4.8 Assign shortcut keys 1.4.9 Manage macro security 1.4. You can use the following macros with the above fields:ĭim strCode As String, strAddress As String Press Control+F9 to insert a set of Field Code Braces.
![assign macro shortcut keys word 2013 assign macro shortcut keys word 2013](https://i.ytimg.com/vi/r8hPIcksgms/hq720.jpg)
Run a macro when a user double-clicks a button in the document