Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Menu Items and Disable/Enable in Excel 2003

I have a question about referencing menu items in VBA using Excel
2003. My workplace intranet has disabled ("grayed out") certain
default menu items on the Worksheet Menu Bar. I want to enable those
menu items. I see various examples that reference menu items (on the
Worksheet Menu Bar) as such:

Application.CommandBars("Worsheet Menu
Bar").Controls("Tools").Controls("Customize").Enab led = False

When I try to type this code in Excel 2003, the second reference to
Controls is not available. In other words, I can reference menus but
not the menu items.

Is this an issue with the version of Excel and a difference in VBA
code? Or, am I off track somewhere?

Thanks,
Tommy )
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 77
Default Menu Items and Disable/Enable in Excel 2003

Hi

This worked for me in excel 2002.

Application.CommandBars("Worksheet Menu
Bar").Controls("&Tools").Controls("&Customize...") .Enabled = False

HTH

KenM


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
How to enable items on Excel draw menu bar. JD Excel Discussion (Misc queries) 3 May 10th 08 01:51 AM
Excel 2003 format menu disable it Setting up and Configuration of Excel 1 October 29th 07 02:15 PM
Can you enable/disable macro keyboard shortcuts in excel 2003? Burninator2000 Excel Discussion (Misc queries) 4 September 18th 07 03:48 PM
Enable/Disable Drag and Drop in Excel 2003 via Registry BSchmeltz Excel Discussion (Misc queries) 9 July 12th 07 05:03 PM
HELP - How do I disable Excels menu items so others can't use Marcello do Guzman Excel Programming 2 December 20th 03 02:14 PM


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