Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,710 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am operating in Excel in Office 2019. I have a routine that sets up multiple CommandBar Buttons. When I click one of those buttons, it calls a different routine, as expected. When the called routine finishes, I want to remove the Created CommandBar Buttons. The delete code is at the end of the running routine. This code will delete all of the created CommandBar Buttons accept the one that calls the currently running routine. When it tries to delete the button that called the routine that is currently running, it gives the above referenced error. How does one resolve that?