Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Toolbar hide event

Status
Not open for further replies.

hsviljoen

Programmer
May 26, 2004
73
ZA
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?
 
Hi hsviljoen,

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.
 
In specificly need a close or hide event as I would like to enable / disable a other botton in a toolbar if this toolbar is vissible or not.

Thank you for your comment though...

If anyone has a idea - I would appreciate it.
 
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 toolbar" ?

Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top