object.Value [= value]
The parts of the Value property syntax are described in the following table.
| Part | Description |
|---|---|
| object | An object expression that evaluates to an object. |
| value | Value specifying the state, content, or position of a control, as described in Settings. |
The settings for value are described in the following table.
| Control | Description |
|---|---|
| CheckBox control | 0 is Unchecked (default), 1 is Checked, and 2 is Grayed (dimmed). |
| CommandButton control | True indicates the button is chosen; False (default) indicates the button is not chosen. Setting the Value property to True in code invokes the button's Click event. |
| HScrollBar and VScrollBar controls | Set values between –32,768 and 32,767 to position the scroll box. |
| OptionButton control | True indicates the button is selected; False (default) indicates the button is not selected. |
A default property of an object is assumed, and does not need to be specified in code.