Turn off toolbars

T

TJ

Hi

I am writing an application in Excel 2003 and want to be able to
programmatically turn the toolbars on and off. Can anyone give any pointers
on how to do this?

Thanks
TJ
 
G

Guest

You can make them invisible as below or bay changing .visible to .enabled
simply grey them out, Don't forget to re-enable them.

Sub drastic()

With Application.CommandBars("Worksheet Menu Bar")
.Controls("&Edit").Visible = False
.Controls("&Window").Visible = False
.Controls("&Insert").Visible = False
.Controls("&File").Visible = False
.Controls("&View").Visible = False
.Controls("&Format").Visible = False
End With
End Sub

Mike
 

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