Macros in a loaded VBA project file can be edited in the VBA IDE. 
- 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 Macros list, select a macro and click Edit.