Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 124
Default Anyone know why this wont work?

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

Comes up with an error message, it is in the Onopen code of the workbook.

Any suggestions much appreciated, thks, regards, Mark


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Anyone know why this wont work?

Hi Mark

You can't use Visible with the Worksheet Menu Bar
Use Application.CommandBars("Worksheet Menu Bar").Enabled = False if you want to hide it

More info here
http://www.rondebruin.com/menuid.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Mark Stephens" wrote in message ...
Application.CommandBars("Worksheet Menu Bar").Enabled = True
Application.CommandBars("Worksheet Menu Bar").Visible = False

Comes up with an error message, it is in the Onopen code of the workbook.

Any suggestions much appreciated, thks, regards, Mark



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 124
Default Anyone know why this wont work?

Dear Ron,

Thanks for your input, appreciate it, rgds, Mark


"Ron de Bruin" wrote in message
...
Hi Mark

You can't use Visible with the Worksheet Menu Bar
Use Application.CommandBars("Worksheet Menu Bar").Enabled = False if you
want to hide it

More info here
http://www.rondebruin.com/menuid.htm


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Mark Stephens" wrote in message
...
Application.CommandBars("Worksheet Menu Bar").Enabled = True
Application.CommandBars("Worksheet Menu Bar").Visible = False

Comes up with an error message, it is in the Onopen code of the workbook.

Any suggestions much appreciated, thks, regards, Mark





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
why is there a { in my formula and why wont it work? Gorgsey Excel Discussion (Misc queries) 6 March 19th 09 03:17 AM
Control + C wont work WREFORD Excel Discussion (Misc queries) 3 August 25th 05 04:44 PM
macro wont work Dan Excel Programming 1 March 2nd 05 04:41 PM
Why Wont This Work? VBA Help Needed! Celtic_Avenger[_45_] Excel Programming 1 September 19th 04 02:21 PM
Sumproduct wont work Mycotopian[_3_] Excel Programming 2 August 5th 04 08:06 PM


All times are GMT +1. The time now is 03:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"