Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Disable Menu and command buttons

You can hide them

i = 0
for each cb in Application.CommandBars
i = i + 1
if i < 3 then
cb.Enabled = False
else
cb.Visible = False
End if
Next
Application.DisplayFormulaBar = False

You need to make a list so you can restore them to their previous state.

Regards,
Tom Ogilvy


"Soniya" wrote in message
...
Hi All,

Is there a way to disable (gray out) all Excel Munus and
command buttons (selected or all)in the active workbook
only (under workbook activate)

TIA

Soniya




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
copy command is disable under edit menu Anirban Dutta Excel Discussion (Misc queries) 2 March 22nd 07 10:56 AM
how to disable copy paste buttons from from edit menu excel test Excel Discussion (Misc queries) 2 January 18th 07 05:00 PM
disable built-in menu and short-cut key for cut command travis Excel Discussion (Misc queries) 1 July 21st 06 05:18 PM
How disable menu command on excel view Armangelo Excel Discussion (Misc queries) 0 February 1st 06 10:04 AM
How disable menu command Armangelo Excel Discussion (Misc queries) 0 February 1st 06 10:00 AM


All times are GMT +1. The time now is 01:23 AM.

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"