I'm using Excel 2003 VBA on windows 10.
I have two Excel files open, each of which has it's own VBA generated custom command bars.
If I switch between them using the "Window" button on the standard menu bar, my custom command bars are retained correctly.
However, if I close one of the files using the code “ActiveWorkbook.Close”, the other file appears but minus the custom bars.
BUT if I close the file using the yellow file close icon on the standard toolbar, the other file appears complete with custom toolbars.
I want to use “ActiveWorkbook.Close”, as there is other associated code in my ‘close’ module.
What’s happening here?
Bookmarks