Hello all,
I have a macro that is removing all menus and toolbars from the Excelworkbook and is creating three new toolbars.
One of the toolbars I use for navigating through the sheets. So if you click a button, the current sheet is hidden and the new sheet is shown, and the toolbar gets new buttons te navigate further.
The problem is that it is not possible (for now) to remove all buttons from that toolbar, because this action is activated by a button from that same toolbar. And it is this button that is not possible to delete.
Is it possible just before deleting this buttons to deactivate that button so I can delete it.
I use the following code:
For Each cbCtrl In Application.CommandBars(“cbNavigate”).Controls
cbCtrl.Delete
Next
Thanks in advance for your reaction.