Hardware Reference
In-Depth Information
2. Choose Tools > Macro > Record New Macro.
3. In the dialog that appears (
Figure 20
), give your new macro a name (like
Test
) and click OK.
Figure 20:
In this dialog, you define a new macro before you
begin recording it.
Tip:
If you want to assign a keyboard shortcut to your macro now, you can.
Before
you click OK in this dialog, click Keyboard, press the desired keyboard
shortcut, and click OK. But you can also
Assign a Keyboard Shortcut to a
VBA Macro
later.
4. Now perform some actions—click buttons, choose menu commands, run a
Find/Replace, or whatever you like. For the purpose of this exercise, I suggest
doing the following:
a. Type the word
First
, press Tab, type
Second
, and press Return.
b. Type
Third
, press Tab, type
Fourth
, and press Return.
c. Press Command-Shift-Up Arrow to select the second paragraph.
d. Press Command-B to turn the selected text bold.
e. Press Shift-Up Arrow to add the previous paragraph to the
selection.
f. Select Table > Convert > Convert Text to Table and click OK.
g. Press Down Arrow to move the insertion point below the table.
5. Choose Tools > Macro > Stop Recording.