toolbars

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,
 
B

bob

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
 
R

Ron de Bruin

Hi devnext

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

Set it to True to get them back
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top