ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   command disabling (https://www.excelbanter.com/excel-programming/336964-command-disabling.html)

JB2005

command disabling
 
Any ideas on how to de-activate(dim) and then re-activate specific commands
from any menu or toolbar they are placed in?

For example, I want to disable the OPTIONS command during the period a
workbook is open and it shouldn't be active from ANY menu or toolbar.

Already the script records original settings, applies the required settings
and on closing, restores the original settings.

However, the workbook is vulnerable to OPTION changes during the period it
is open!

Ron de Bruin

command disabling
 
Hi JB2005

Start here
http://www.rondebruin.com/menuid.htm

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


"JB2005" wrote in message ...
Any ideas on how to de-activate(dim) and then re-activate specific commands
from any menu or toolbar they are placed in?

For example, I want to disable the OPTIONS command during the period a
workbook is open and it shouldn't be active from ANY menu or toolbar.

Already the script records original settings, applies the required settings
and on closing, restores the original settings.

However, the workbook is vulnerable to OPTION changes during the period it
is open!




JB2005

command disabling
 
EXCELLENT!
:)

"JB2005" wrote:

Any ideas on how to de-activate(dim) and then re-activate specific commands
from any menu or toolbar they are placed in?

For example, I want to disable the OPTIONS command during the period a
workbook is open and it shouldn't be active from ANY menu or toolbar.

Already the script records original settings, applies the required settings
and on closing, restores the original settings.

However, the workbook is vulnerable to OPTION changes during the period it
is open!



All times are GMT +1. The time now is 07:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com