|
|
Title | Enable or disable a group of controls |
Keywords | control, enable, disable, EnableControls |
Categories | Tips and Tricks, Controls |
|
|
The EnableControls subroutine takes a variable length list of arguments. It sets the Enabled property of the controls in the argument list to enable or disable them.
Thanks to Alexander Willemse.
|
|
' Enable or disable the controls.
Sub EnableControls(ByVal make_enabled As Boolean, _
ParamArray objs() As Variant)
Dim obj As Variant
For Each obj In objs
obj.Enabled = make_enabled
Next obj
End Sub
|
|
|
|
|
|