After a VBA project is loaded, you can add a new macro to the project.
- On the ribbon, click Manage tab Applications panel Run VBA Macro.
- In the Macros dialog box, Macros In drop-down list, select the project file you want to work with.
- In the Macro Name text box, enter a name for the new macro and click Create.
If a macro with the specified name already exists, you will be prompted to replace the existing macro. Click Yes to replace the macro or No to enter a different name.