Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
disable the Tool menu in toolbar | Excel Programming | |||
Enable/Disable Menu Items | Excel Programming | |||
Is is possible to disable certain menu items | Excel Programming | |||
Disable menu items with VBA | Excel Programming | |||
HELP - How do I disable Excels menu items so others can't use | Excel Programming |