Create a macro
On the Tools menu, point to Macro, and then click Macros.
- In the Macro name box, type a name for the macro, and then click Create.
Macro names cannot contain spaces or punctuation marks, but you can use underscores. For example, you can use Macro1 or Macro_1, but not Macro 1.
- In the Visual Basic Editor, type or copy your code into the module window.
- If you want to run the macro from the module window, press F5.
- When you're finished creating your macro, click Close and Return to Microsoft FrontPage on the File menu.