toolbars

  • Thread starter Thread starter devnext
  • Start date Start date
D

devnext

hi,

how can i delete all toolbars and menus from my workbooks
when i start a certain excel application?

the objective is to the end user work only with the
controls that i've created.

thanks,
 
application.commandbars.item("Standard").visible = false
application.commandbars.item("formatting").visible = false

These are the standard toolbars. If you want to hide
them all:

for x = 1 to applicaiton.commandbars.count
application.commandbars.item(x).visible = false
next x
 
Hi devnext

Dim bar As CommandBar
For Each bar In Application.CommandBars
bar.Enabled = False
Next

Set it to True to get them back
 
Back
Top