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

Thanks again to everyone for their help. Works perfectly!



"Ron de Bruin" wrote:

More ID information you can find here

http://support.microsoft.com/default...66&Product=xlw
XL97: List of ID Numbers for Built-In Command Bar Controls

http://support.microsoft.com/default...14&Product=xlw
XL97: Sample Macros to Return ID for a CommandBar Control

http://support.microsoft.com/default...55&Product=xlw
XL97: WE1183: "Customizing Menu Bars, Menus, and Menu Items"

http://support.microsoft.com/default...19&Product=xlw
XL97: Sample Macros for Customizing Menus and Submenus

http://support.microsoft.com/default...78&Product=xlw
XL97: Sample Macros That Customize and Control Shortcut Menus


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


"JE McGimpsey" wrote in message ...
In article ,
"Bill" wrote:

I've never used the ThisWorkbook code module - what is the purpose of
that?


http://www.mcgimpsey.com/excel/modules.html

Also, if my company is using Excel 97, is it safe to assume the other
users who will open this workbook will have the Unprotect Sheet... I
of 893 also?


In all current versions it is. I suppose that it's possible it will
change, but given that it would break existing code, it's unlikely.

You could check for

Commandbars(1).Controls("Tools").Controls( _
"Protect").Controls("Unprotect Sheet...").Id

but if the active sheet is not protected, it will fail (since the
caption is changed to "Protect Sheet..."). It will also fail if the user
has moved the control to another location.




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
Menu items added with menu item editor in older versions Michael Hoffmann Excel Discussion (Misc queries) 2 January 7th 05 01:40 PM
Adding a menu item right click menu when clicking on a single. Andoni[_28_] Excel Programming 0 September 2nd 04 10:23 PM
Disabling Right Click Menu Tom Excel Programming 2 August 18th 04 06:57 AM
Disabling Menu Options Neil Warwick Excel Programming 1 January 18th 04 10:02 PM
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 06:19 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"