Automating Your Work with Macros
Do you often redo many tasks that require the same, sometimes lengthy, series of steps? Rather than repeat the same actions, you can work faster by recording the entire series of keystrokes and commands in a custom command, or macro. A macro is a sequence of commands and entries that can be activated collectively by clicking a toolbar button, clicking a menu command, typing a key combination, or clicking the Run command in the Macros dialog box. Macros are a perfect way to speed up routine formatting, combine multiple commands, and automate complex tasks. Any time you want to repeat that series of actions, you can "play," or run, the macro.
Record a Macro
| Click the Tools menu, point to Macro, and then click Macros. |
| Type a name for the new macro. |
Click Create.
The Microsoft Visual Basic window opens, where you can create a macro. | Type your macro code. |
| When you're done, click the File menu, and then click Close And Return To Microsoft Office FrontPage. |
Run a Macro
| Click the Tools menu, point to Macro, and then click Macros. |
| If necessary, click the Macros In list arrow, and then click the page that contains the macro you want to run. |
| Click the name of the macro you want to run. |
| Click Run. |
Delete a Macro
| Click the Tools menu, point to Macro, and then click Macros. |
| Select the macro you want to remove. |
| Click Delete. |
| Click Yes to confirm the deletion. |
|