FalseValue Property, TrueValue Property

See Also    Examples    Applies To

Public Property FalseValue As Variant

chk.FalseValue [= varValue]

Resets/sets the value used in the Value property to indicate an unchecked checkbox.

Public Property TrueValue As Variant

chk.TrueValue [= varValue]

Resets/sets the value used in the Value property to indicate an checked checkbox.

Reading the Value property gives the following results:

An unchecked Checkbox returns the value of the FalseValue property.
A checked Checkbox returns the value of the TrueValue property.
A grayed Checkbox returns Null.

Writing the Value property gives the following results:

Writing the FalseValue to the Value property unchecks the checkbox and sets the Value property to the value of FalseValue.
Writing the TrueValue to the Value property checks the checkbox and sets the Value property to the value of TrueValue.
Writing any other value to the Value property grays the checkbox and sets the Value property to Null.

FalseValue defaults to 0, TrueValue defaults to 1.