Programming with Reflection

image\rwnprg32.gif SetCommandProfile method


Syntax object.SetCommandProfile CmdName, IsEnabled



Specifies whether the selected built-in function is enabled (executable) or disabled (not executable). Disabled menu commands are removed from the Reflection menus. For example, this statement removes the Visual Basic Editor item from the macros menu:

Session.SetCommandProfile "VisualBasicEditor", rcDisabled


CmdName Argument Type: String
The built-in function name.

IsEnabled Argument Type: Enumeration
Specifies whether the given function is to be enabled or disabled. The possible values are:


 The function is enabled.


 The function is disabled.


image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command