Enabled property

Returns or sets a value that indicates whether or not the object can receive the input focus and respond to user-generated events such as mouse clicks or key presses. Read/write. Boolean.
If the object has input focus when Enabled is set to False, the input focus moves to the next object in the tab order.
Syntax
element
.
Enabled
[ =
value
]
where
element
– is the name of a Button object or an expression that evaluates to a Button object.
value
– is a Boolean value that specifies whether Enabled is True or False.
Remarks
  • The appearance of an object that is unavailable (Disabled) can be different than when it is available (Enabled). When a Button object is unavailable, the text displayed on it will appear dimmed and shadowed.
  • The appearance of ActiveX objects depends on the object. If it exposes an Enabled property, it is set when the element Enabled property is set which allows it to assume its available appearance.
  • Objects that are unavailable and typically respond to mouse input, are not be highlighted when the mouse pointer passes over them, and act as if their KeyNavigation property is False.
  • When the Enabled property for a Button object is set to False at design time, the button takes on its unavailable appearance.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal