I need to run code when a user hide(closes) a toolbar in word. I cant seem to find a event for this in VBA. I want to add a button to the toolbar ( VIEW Toolbar ) if the user hides the current toolbar. Is this possible?
The CommandBars Collection exposes an OnUpdate Event which might help you, depending on exactly what you want to do. Do be aware that it can fire often and can be very difficult to work with while you are developing code.
Enjoy,
Tony
-------------------------------------------------------------------------------------------- We want to help you; help us to do it by reading this: Before you ask a question.
Could you clearly spec out exactly what you want to happen? You mention "the current toolbar". What, precisely, are the events you want to happen? For example, I am unclear what you mean by VIEW toolbar. Do you mean View menu?
enable / disable a other botton in a toolbar if this toolbar is vissible or not.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.