Share via


WebCheckBox.Value Property

Publisher Developer Reference

Returns or sets a String that represents the value of a Web check box or option button. Read/write.

Syntax

expression.Value

expression   A variable that represents a WebCheckBox object.

Example

This example creates a new Web check box control, assigns a name and value to it, and indicates its initial state is checked.

Visual Basic for Applications
  Sub CreateWebButton()
    With ActiveDocument.Pages(1).Shapes.AddWebControl _
            (Type:=pbWebControlCheckBox, Left:=72, _
            Top:=72, Width:=100, Height:=50)
        .Name = "ControlBox"
        With .WebCheckBox
            .Value = "This is a check box."
            .Selected = msoTrue
        End With
    End With
End Sub

See Also