Macro Recording

You can record a macro using quick macros or named macros. If you want to develop a complex macro that you can refine by editing the VBScript macro file, regular macro recording provides the interface to do so. The quick macros bypass the macro-recording interface, enabling you to quickly record your actions without having to name a macro, provide a description for it, or review the resulting macro file. This also saves you some keystrokes whenever you want to run the quick macro, because it remains available from the menu — even if you close and reopen the IDE — until you record another quick macro.

During macro recording, you can temporarily pause to do something else, such as preparing for the next action. While you pause, the recorder does not track your keystrokes. When you are ready, you can resume recording where you stopped.

The recorder cannot record mouse actions when selecting text or moving the insertion point. You must use the keyboard to record these actions. However, you can use the mouse to select commands and options. The recorder does not always convert keystrokes into commands. If you are recording a named macro, rather than a quick macro, examine the macro carefully when you stop recording to ensure it is complete. If you find something missing, you can add the appropriate code.

See Also

Macro Implementation | Recording a Quick Macro | Recording a Named Macro That You Can Save and Edit

 Last updated on Friday, October 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.