Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Disabling Menu Options

Can anyone out there help me with a small problem?

I want to disable some of the menu commands to aid
security in my workbook, and also to stop users meesing
up my application.

I have used the following piece of code:-

CommandBars("Worksheet Menu Bar").Controls
("File").Enabled = False

But this diables the whole 'File' menu, I just want to
disable certain options, such as 'Print', I suppose it's
a variation on the above line, but I just cant work it
out!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Disabling Menu Options

Neil,

Add another control level

CommandBars("Worksheet Menu
Bar").Controls("File").Controls("Print...").Enable d = False

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Neil Warwick" wrote in message
...
Can anyone out there help me with a small problem?

I want to disable some of the menu commands to aid
security in my workbook, and also to stop users meesing
up my application.

I have used the following piece of code:-

CommandBars("Worksheet Menu Bar").Controls
("File").Enabled = False

But this diables the whole 'File' menu, I just want to
disable certain options, such as 'Print', I suppose it's
a variation on the above line, but I just cant work it
out!



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
Disabling Tools/Options setting Jeronimo Excel Discussion (Misc queries) 3 March 22nd 10 05:10 AM
Menu options Luis Elguezabal Excel Worksheet Functions 1 May 8th 08 02:59 PM
Options Menu abarger123 Excel Discussion (Misc queries) 5 August 17th 05 04:38 PM
Disabling standart menu options Dusan Excel Programming 3 November 24th 03 11:30 AM
Disabling menu items in VBE Michael Singmin Excel Programming 1 October 10th 03 01:39 PM


All times are GMT +1. The time now is 01:37 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"