Extending product function with VBA : Accessing the VBA Editor
  
Accessing the VBA Editor
To create a macro or modify an existing macro, open the VBA Editor, by doing one of these:
On the Tools menu, click Macros > VBA Editor.
Press Alt+F11.
In the Macros dialog, click Edit.
In the Macro Projects dialog, click Apply command (if active) and then Run Macro. This opens the Macros dialog where the Edit command button can be found.
See also
The Project Explorer
The Properties window
Inserting modules and forms
Introduction to extending SA with VBA