Value Property (ActiveX Controls)

       

Returns or sets the value of an object.

Syntax

object.Value [= integer]

The Value property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
integer For a Slider control, a long integer that specifies the current position of the slider. For the ProgressBar control, an integer that specifies the value of the ProgressBar control. For other controls, see Settings below.

Settings

For the Button object, the settings for integer are:

Constant Value Description
tbrUnPressed 0 (Default). The button is not currently pressed or checked.
tbrPressed 1 The button is currently pressed or checked.

Remarks