hiding the Menu bar

  • Thread starter Thread starter kcammandc
  • Start date Start date
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
 
This command made it disappear for me in XL XP.

Commandbars("Worksheet Menu Bar").Enabled = False
 
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

auto enable macros 5
Stripping down excel 2
MAJOR PROBLEM! --- Menu Bars don't unhide? 9
Customise Button on toolbar 1
Shared Workbook 12
Hide menu bar 1
hide formula bar (and menu bar etc) 2
Hide the close X in excel 2

Back
Top