A macro is a series of commands and instructions that you group together as a single command to accomplish a task automatically. Macros are written in the Visual Basic for Applications programming language.
If you perform a task repeatedly in Microsoft Expression Web, you can automate the task with a macro. For example, you can use macros to create new pages and apply templates to them.
The Visual Basic Editor is a program designed to make writing and editing macro code easy to learn for beginners, and it provides plenty of Help. By using the Visual Basic Editor, you can create new macros, edit existing macros, or copy macros from one module or page to another. You can also rename macros or modules that store macros.
After you create a macro, you can run it by choosing it from a list in the Macro dialog box. To run a macro whenever you click a particular button, you can assign the macro to a toolbar button.
To get Visual Basic Editor help
On the Help menu in the Visual Basic Editor, click Visual Basic Help.