Microsoft Word 2007 is several generations out of date and is no longer supported by Microsoft. If you can, upgrade to a modern, supported version of Word to receive important security updates and feature improvements.
A small portion of the population still uses Word 2007, either because they prefer it or because their organization hasn’t been updated yet. Therefore, we retain this macro guide for its historical value and to support the remaining Word 2007 users.
- Introduction to Word Macros
- Preparing to record a word macro
- Create a quick access toolbar button for your macro
- Assign a keyboard shortcut to your macro
- Record your macro
Introduction to Word Macros
Macros are a great way to automate your work in Microsoft Word. A macro is a series of tasks that can be performed by pressing a hotkey, clicking a button on the toolbar Quick access or by selecting a macro from the list.
Word supports many options for creating a macro. Can contain any command in Microsoft Word.
Options for creating a macro can be found on the Developer tab of the ribbon. By default, Word 2007 does not display options for creating a macro. To display the options, you need to enable the Word Developer tab.
To open the Developer tab, click the button Office and choose word options † Press the button Popular on the left side of the dialog box.
Select Show developer tab on ribbon † Click Okay † The Developer tab appears to the right of the other tabs on the Word ribbon.
Preparing to record a word macro
Open a tab Developer and press Record Macro In chapter The code †
Enter a macro name in the field Macro name † The name you choose cannot be the same as the built-in macro. Otherwise, the built-in macro will be replaced with the one you created.
Use the box Save macro in to select a template or document to save the macro. To make the macro available in all documents you create, choose the Normal.dotm template. Enter a description for your macro.
You can create a quick access toolbar button for your macro. You can also create a hotkey so that the macro can be activated with a hotkey.
If you don’t want to create a button or shortcut, click Okay to start recording; to use the macro you have to press Macros tab Developer and select a macro.
Create a quick access toolbar button for your macro
To create a shortcut key for a macro, click the button Knob in the field Macro shot † Menu opens Customize the Quick Access Toolbar †
Specify the document in which you want the Quick Access button to appear on the toolbar. Select All documents if you want the button to appear while you are working on a document in Word.
In the dialog box Pick a team select macro and click To add †
To customize the appearance of your button, click Change † In chapter Symbol select the character you want to display on the macro button.
Enter a display name for your macro to display as a tooltip.
Assign a keyboard shortcut to your macro
To assign a keyboard shortcut to your macro, click Keyboard in the dialog box Macro shot †
Select the macro you are recording in the field teams † in field Press new hotkey enter your hotkey. Click To appoint and then click close to † Click Okay †
Record your macro
After you select the macro options, Word will automatically start recording the macro.
You can use keyboard shortcuts to perform the actions you want to include in the macro. You can also use the mouse to click buttons on ribbons and dialog boxes. However, you cannot use the mouse to select text; You must use the navigation arrows on the keyboard to select text.
Everything you do is recorded until you hit . click Stop recording In chapter The code on tape Developer †