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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can not find Toolbar Control ID's

Status
Not open for further replies.

slcjr777

IS-IT--Management
Feb 1, 2002
11
US
Hello All,
I am locking down Word and Excel via GPO. I want to disable a entire toolbar (not just individual buttons). I have found control id's for all Menu Items, and Shortcut Keys. I can also enumerate individual toolbar button control id's by opening VBA and inputing the following into the Immediate Window

? Commandbars ("standard").controls ("document map").id

What I can't do is enumerate the control ID for the entire toolbar. Anyone know if this is possible?

Thanks in advance

slcjr777
 
Hi slcjr777,

I don't think Toolbars themselves have IDs but you can disable them by ..

Code:
CommandBars("Standard").Enabled = False

.. without doing anything to the individual controls.

Enjoy,
Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top