Recording a Macro in Word
- On the Tools menu, select Macro
> Record New Macro.
- In the Macro name box, type a name for
your new macro.
- In the Store macro in box, click the
document in which you want to store the macro.
- In the Description box,
enter a description for the macro.
- If you don't want to assign the macro to a toolbar, a
menu, or shortcut keys, click OK to start recording the macro.
Tip: To assign the macro to a toolbar, click Toolbars > Commands tab.
In the Commands box, click the macro you are recording, and drag it to the toolbar you
want to assign it to. Click Close to start recording the macro.
- Perform the action, or set of actions, you want to include
in your macro, for example changing unformatted text into a specific font family and font
size.
Tip: When recording a macro, you can use the mouse to click commands and
options, but not to select text. Use the keyboard to record these actions. For example,
use F8 to select text and press END to move the cursor to the end of the line.
- To stop recording your macro, click Stop Recording.
How to record a macro with Visual Basic for Applications (VBA)
- On the Tools menu, select Macro
> click Macros.
- In the Macros in list, click the template
or document in which to store your macro.
- In the Macro name box, enter a name for
the macro.
- Click Create to open the Visual Basic
Editor.
- Tip: If you name the new macro the same
as an existing built-in command in Microsoft Word, the new macro actions will overwrite
the existing actions.
- To view the built-in macros in Word, go to Tools
> Macro > Macros.
- In the Macros in drop-down list, click Word
Commands.
Your Thoughts?
What are your thoughts on this? Drop me a line at ivan
at klariti dot com |