Record a macro to automate tasks or generate code
-
On the Tools menu, point to Macros, and then click Record New Macro.
-
In the Macro name box, type a name for the macro.
-
In the Shortcut key box, type a shortcut key that can be used with the CTRL key to run the macro.
-
In the Store macro in box, click the document in which you want to store the macro.
-
In the Description box, type a description for the macro.
-
Click OK to begin recording the macro.
-
Perform the actions you want to include in your macro.
When you record a macro, you can use the mouse to click commands and options, and to work with shapes and objects in drawings.
-
To stop recording your macro, click Stop Recording in the floating Recording toolbar.
You can also pause or resume macro recording using the Recording toolbar.
To view the resulting code, on the Tools menu, point to Macros, click Macros, click the macro name, and then click Edit.
No comments:
Post a Comment