MS Word Chapter 22
MS Word Chapter 22
MS Word Chapter 22
The right column displays the tabs on the Ribbon and the groups and commands in each tab.
3. Select the Developer check box under Customize the Ribbon and click OK.
The Word Options dialog box closes, and the Developer tab is displayed on the Ribbon.
Create a Macro:
When you create or record a macro, imagine you’re being videotaped; everything is
recorded—all your commands, the data you enter, even any mistakes you make. Before
recording a macro, it’s helpful to write down a script that contains all the steps you want the
macro to record. Practice or rehearse your script a couple times, to make sure it works, before
you actually record it. If you do make a mistake while recording a macro, don’t worry—you
can always delete the existing macro and try again or edit the macro’s Visual Basic source code
to fix the mistake.
1. Click the Developer tab on the Ribbon and click the Record Macro button in the Code
group.
Next you can enter a number of specifications for the macro, including assigning a keystroke
shortcut to the macro for easy access.
3. (Optional) Click the Keyboard button and in the Press new shortcut key box, press the
If the keystroke is not already assigned to another command, [unassigned] appears in the
dialog box.
You may also choose if you want to save the macro in the current document or template, or
enter a description for the macro.
4. Finish entering the macro information and click OK. Now the Record Macro dialog box
closes, and everything you do is recorded.
You can perform a command from the Ribbon, a keystroke shortcut, or a dialog box.
Tip: You cannot use the mouse to edit and select text as you normally would while recording a
macro—you have to use the keyboard instead. You still can use the mouse to access the
Ribbon, however.
Tip: Use the Pause Recording button if you need to stop the macro command progression
so you don’t have to start all over again.
Tip:
If you see a Security Warning message beneath the Ribbon telling you that macros have been
disabled, click the Enable this content, and click OK.
Play a macro:
1. Click the Developer tab on the Ribbon and click the Macros button in the Code group.
The Macros dialog box appears. Here you can see the macros that are available in the
document.
2. Select the macro you want to run and click the Run button.
Delete a macro:
Delete a macro when it is no longer needed. This lowers the security threat of the document.
1. Click the Developer tab on the Ribbon and click the Macros button in the Code group.
2. Select the macro you want to delete and click the Delete button in the dialog box.
Another dialog box appears, asking if you really want to delete the macro.
3. Click Yes.
The macro is deleted.