Home Forums General XMetaL Discussion Deactivating toolbar buttons when changing view mode Reply To: Deactivating toolbar buttons when changing view mode

tonys

Reply to: Deactivating toolbar buttons when changing view mode

I believe when disabling macros it is best to use the On_Update_UI even macro. All macros are enabled when this is called so disabling macros elsewhere will probably give the wrong result.

Try something like this:

if (ActiveDocument.ViewType == 2) /* 2: plain text */
Application.DisableMacro("MacroName");
]]>

Reply

Products
Downloads
Support