Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 358
Default disable Menu/toolbar items

How do I disable Menu / toolbar items when opening a workbook and enable them
when I close the workbook. Doing this to force the user to use the macro's I
have written.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,101
Default disable Menu/toolbar items

Application.CommandBars("Tools").Enabled = False

The above placed in the workbook open event will disable the Tools menu.

Application.CommandBars("Tools").Enabled = true

And this placed in the before-close event will re-enable it.

You could in this way disable others by changing Tools to Format for example
but it seems a bit drastic to me.

"Andrew" wrote:

How do I disable Menu / toolbar items when opening a workbook and enable them
when I close the workbook. Doing this to force the user to use the macro's I
have written.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 358
Default disable Menu/toolbar items

Hi Mike,

I basically want to disable the print function in the toolbar as well as the
menu and the save / save as buttons.
I did this years ago and just can't rember how to do it again. Do I create a
open event SUB and give the command?

Thanks again.


"Mike" wrote:

Application.CommandBars("Tools").Enabled = False

The above placed in the workbook open event will disable the Tools menu.

Application.CommandBars("Tools").Enabled = true

And this placed in the before-close event will re-enable it.

You could in this way disable others by changing Tools to Format for example
but it seems a bit drastic to me.

"Andrew" wrote:

How do I disable Menu / toolbar items when opening a workbook and enable them
when I close the workbook. Doing this to force the user to use the macro's I
have written.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default disable Menu/toolbar items

See this page Andrew
http://www.rondebruin.nl/menuid.htm

Post back if you have problems



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Andrew" wrote in message ...
Hi Mike,

I basically want to disable the print function in the toolbar as well as the
menu and the save / save as buttons.
I did this years ago and just can't rember how to do it again. Do I create a
open event SUB and give the command?

Thanks again.


"Mike" wrote:

Application.CommandBars("Tools").Enabled = False

The above placed in the workbook open event will disable the Tools menu.

Application.CommandBars("Tools").Enabled = true

And this placed in the before-close event will re-enable it.

You could in this way disable others by changing Tools to Format for example
but it seems a bit drastic to me.

"Andrew" wrote:

How do I disable Menu / toolbar items when opening a workbook and enable them
when I close the workbook. Doing this to force the user to use the macro's I
have written.

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
disable the Tool menu in toolbar Sameh Farouk Excel Programming 8 April 18th 06 12:11 PM
Enable/Disable Menu Items Andrew Kennard Excel Programming 3 January 25th 05 04:12 PM
Is is possible to disable certain menu items Buster Excel Programming 1 November 19th 04 08:11 AM
Disable menu items with VBA jst_se Excel Programming 1 July 22nd 04 08:25 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 07:48 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"