Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 620
Default Make "Worksheet Menu Bar" invisible or Delete/hide it's buttons

To hide a control, just use

Application.Commandbars("Worksheet Menu Bar").Controls("File").Visible =
False

set it true to rest back.

To hide the worksheet menu bar, use

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


--

HTH

Bob Phillips

"mcpheat" wrote in message
...
Hi folks,
Thanks to Bob and Tom for the help recieved last time, here is my next
question.

I want to "customise" the "worksheet menu bar" with some controls in vb
ie remove most of them (file, edit, view, insert etc) and add other ones.

On exit, i want to restore the toolbar as if i
"right clicked" on any toolbar
Selected "customise"
selected "worksheet menu bar" and hit "reset"

If i simply add the menu options back again (file, edit, view, )
they need to be rebuilt as the are "headings" only.


I also tried to hide the Worksheet Menu Bar with the following
Application.CommandBars("Worksheet Menu Bar").Visible = False
as this would be PREFERABLE but got a runtime error
"method 'visible' of object 'commandbar' failed"

Thanks for any help you may be able to offer





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
Where did the "Hide PivotChart field buttons" function go in 2007? Bony Pony[_2_] Excel Discussion (Misc queries) 3 December 12th 08 07:04 PM
Using Option Buttons from the "Forms" Menu D Jones Excel Discussion (Misc queries) 5 October 12th 07 08:28 PM
how to hide "All" in drop-down menu of my pivot table nader Excel Discussion (Misc queries) 0 January 26th 07 12:17 AM
Pivot "row hide menu" keeps having items I don't have anymore!?!? [email protected] Excel Discussion (Misc queries) 6 January 4th 07 11:27 PM
VBA to disable "Delete...." on shortcut menu of worksheet tab? Mary Kathryn Excel Discussion (Misc queries) 3 March 3rd 06 05:54 PM


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

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

About Us

"It's about Microsoft Excel"