hiding the Menu bar

K

kcammandc

hi

i have a database running in excel, and i have a main control
worksheets, but i want to hide certain elements. i can run this code,
but the last line fails. any ideas would be good.

Sub Auto_open()
ActiveWindow.DisplayWorkbookTabs = False
Application.DisplayScrollBars = False
Application.DisplayFormulaBar = False
Application.CommandBars("standard").Visible = False
Application.CommandBars("formatting").Visible = False
Application.CommandBars("Worksheet Menu Bar").Visible = False

yours

Eliot
IT Trainer
 
M

Myrna Larson

This command made it disappear for me in XL XP.

Commandbars("Worksheet Menu Bar").Enabled = False
 
B

Bob Phillips

Try

Application.CommandBars("Worksheet Menu Bar").Enabled = False

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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

Similar Threads


Top