Reputation: 615
I am learning EXCEL vba and was trying to create a macro that ran when EXCEL was opened. It was saved as "Personal Workbook" and now every EXCEL spreadsheet I open has this macro. Should have selected as "This Workbook". How do I get rid of that macro so that Workbooks open without it.
Thanks
Upvotes: 0
Views: 1099
Reputation: 11
Using the gui to get to the file.
In Excel
File -> Options
Click on "Customize Ribbon"
In the right hand pain there is a "Developer" checkbox that is unchecked by default, check it.
Now go to the "Developer" ribbon and click "Macros"
Click the macro you do not want an click "Delete".
Upvotes: 0
Reputation: 19837
If you just want to remove the module in Personal workbook that was created, rather than the whole file:
Alt + F11
to open) PERSONAL.XLSB
VBA Project in the Project Explorer (Ctrl + R
to open in the VBE)+
sign next to VBAProject
.+
sign next to the Modules
folder in the project.Upvotes: 0
Reputation: 54
The personal workbook will be in Appdata/Microsoft/Excel/XLSTART. Just remove it from there. To get to your app data folder press windows+r and type %appdata%
Upvotes: 1