dkathrens77
Technical User
Greetings All,
I want to code a custom Commandbar for a simple Excel workbook application. A few buttons to run macros. This is not a persistent object, it should be created when the workbook opens and disappear when it closes.
I've got the Commandbar and the buttons and the macros set up, and I want the code to run when the workbook opens.
It apparently does not run. My commandbar is not shown, and does not appear in the View>Toolbars list.
If I go into the Visual Basic Editor (Alt-F11) and step through the code, it executes fine with no errors. When I go back to my worksheet, the commandbar is there as desired and the buttons work as expected.
I wonder if I have the Workbook_Open() event in the correct location. Looking at the Project Explorer, should this be in a module, in the ThisWorkbook object, or somewhere else?
If the answer to my issue isn't instantly obivous from this posting, I can post the code here for your inspection.
Thanks,
Dennis
I want to code a custom Commandbar for a simple Excel workbook application. A few buttons to run macros. This is not a persistent object, it should be created when the workbook opens and disappear when it closes.
I've got the Commandbar and the buttons and the macros set up, and I want the code to run when the workbook opens.
It apparently does not run. My commandbar is not shown, and does not appear in the View>Toolbars list.
If I go into the Visual Basic Editor (Alt-F11) and step through the code, it executes fine with no errors. When I go back to my worksheet, the commandbar is there as desired and the buttons work as expected.
I wonder if I have the Workbook_Open() event in the correct location. Looking at the Project Explorer, should this be in a module, in the ThisWorkbook object, or somewhere else?
If the answer to my issue isn't instantly obivous from this posting, I can post the code here for your inspection.
Thanks,
Dennis