Programming with Reflection

image\rwnprg32.gif SetCommandProfile method

 

Syntax object.SetCommandProfile CmdName, IsEnabled

 

Description

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

Arguments

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.

 

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command