Programming with Reflection
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
Required
The built-in function name.
IsEnabled Argument Type: Enumeration
Required
Specifies whether the given function is to be enabled or disabled. The possible values are:
rcEnabled
The function is enabled.
rcDisabled
The function is disabled.