Datasheet

Doing the Macro Recorder Dance
560
If the Developer tab isn’t visible, choose OfficeWord Options to
summon the Word Options dialog box. Then, click the Personalize tab
and select the Show Developer Tab in the Ribbon check box.
4. Type the name of the macro you want to create in the Macro Name
text box.
The name can be anything you want, but it cannot include spaces,
commas, or periods. When the Record Macro dialog box first appears,
the macro name is set to something like Macro1 or Macro2 (or Macro783
if you’ve been busy). Surely you can come up with a better name than
that. (I know . . . “Yes, I can . . . and stop calling me Shirley.”)
5. To make your macro accessible from a toolbar or the keyboard, click
the Button or Keyboard button.
This step calls up the Customize dialog box, which is ready to add your
macro to a toolbar, the Ribbon, or a keyboard shortcut. Figure 1-2 shows
the Customize Keyboard dialog box that Word displays if you click the
Keyboard button. Type the shortcut key combination you want to assign
to the macro (in this case, I pressed Alt+Ctrl+B), click the Assign button
and then click Close.
If you click the Button button instead, the Word Options dialog box
appears with the Customize tab selected. Then, you can create a button
on the Quick Access toolbar to run the macro. For more information,
refer to Book VIII, Chapter 1.
Figure 1-2:
Assigning a
macro to a
keyboard
shortcut.
50_040584 bk09ch01.qxp 12/28/06 9:28 PM Page 560