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 Item Deleted

In one excel file, in the ThisWorkbook object, in the Private Sub
Workbook_Open() event, I entered the this line of code:
Application.CommandBars(1).Name("Format").Delete
The intent was to disable FormatSheetsunhide to the users in this
particular file.
Format has gone away in all instances of Excel and reinstalls do not cure
the problem. I am at a loss. Can anyone help?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Menu Item Deleted

Hi Caddy

I think you used
Application.CommandBars(1).Controls("Format").Dele te

You can reset it like this
Application.CommandBars(1).Reset

For more information see
http://www.rondebruin.com/menuid.htm


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



"Caddy Shack" wrote in message ...
In one excel file, in the ThisWorkbook object, in the Private Sub
Workbook_Open() event, I entered the this line of code:
Application.CommandBars(1).Name("Format").Delete
The intent was to disable FormatSheetsunhide to the users in this
particular file.
Format has gone away in all instances of Excel and reinstalls do not cure
the problem. I am at a loss. Can anyone help?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Menu Item Deleted

BTW, the code you want is

Application.CommandBars(1).Controls("Format").cont rols("Sheet").controls("Un
hide...").enabled=false


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Ron de Bruin" wrote in message
...
Hi Caddy

I think you used
Application.CommandBars(1).Controls("Format").Dele te

You can reset it like this
Application.CommandBars(1).Reset

For more information see
http://www.rondebruin.com/menuid.htm


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



"Caddy Shack" wrote in message

...
In one excel file, in the ThisWorkbook object, in the Private Sub
Workbook_Open() event, I entered the this line of code:
Application.CommandBars(1).Name("Format").Delete
The intent was to disable FormatSheetsunhide to the users in this
particular file.
Format has gone away in all instances of Excel and reinstalls do not

cure
the problem. I am at a loss. Can anyone help?





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Menu Item Deleted

Hi Caddy

If your workbook will also be used in non US Excel versions use the ID numbers
of the control(see my site).
If not use Bob's example

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



"Bob Phillips" wrote in message ...
BTW, the code you want is

Application.CommandBars(1).Controls("Format").cont rols("Sheet").controls("Un
hide...").enabled=false


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Ron de Bruin" wrote in message
...
Hi Caddy

I think you used
Application.CommandBars(1).Controls("Format").Dele te

You can reset it like this
Application.CommandBars(1).Reset

For more information see
http://www.rondebruin.com/menuid.htm


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



"Caddy Shack" wrote in message

...
In one excel file, in the ThisWorkbook object, in the Private Sub
Workbook_Open() event, I entered the this line of code:
Application.CommandBars(1).Name("Format").Delete
The intent was to disable FormatSheetsunhide to the users in this
particular file.
Format has gone away in all instances of Excel and reinstalls do not

cure
the problem. I am at a loss. Can anyone help?







  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Menu Item Deleted

Ron,

I keep forgetting that. Thanks

Bob


"Ron de Bruin" wrote in message
...
Hi Caddy

If your workbook will also be used in non US Excel versions use the ID

numbers
of the control(see my site).
If not use Bob's example

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



"Bob Phillips" wrote in message

...
BTW, the code you want is


Application.CommandBars(1).Controls("Format").cont rols("Sheet").controls("Un
hide...").enabled=false


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Ron de Bruin" wrote in message
...
Hi Caddy

I think you used
Application.CommandBars(1).Controls("Format").Dele te

You can reset it like this
Application.CommandBars(1).Reset

For more information see
http://www.rondebruin.com/menuid.htm


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



"Caddy Shack" wrote in message

...
In one excel file, in the ThisWorkbook object, in the Private Sub
Workbook_Open() event, I entered the this line of code:
Application.CommandBars(1).Name("Format").Delete
The intent was to disable FormatSheetsunhide to the users in this
particular file.
Format has gone away in all instances of Excel and reinstalls do not

cure
the problem. I am at a loss. Can anyone help?











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
item numbers in a list that update if a row is deleted hot dogs Excel Discussion (Misc queries) 2 September 15th 06 08:38 AM
Suddenly deleted Tools Menu Rao Ratan Singh New Users to Excel 1 February 17th 06 09:52 AM
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
deleted item van Excel Programming 0 November 14th 03 03:41 AM


All times are GMT +1. The time now is 10:28 AM.

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"