This documentation is archived and is not being maintained.

WebCheckBox Property.WebCheckBox Property

Office 2007
Returns the WebCheckBox object associated with the specified shape.

Syntax

expression.WebCheckBox

expression   A variable that represents a WebCheckBox Property object.

Return Value
WebCheckBox

Example

This example creates a new Web check box and specifies that its default state is checked.

Visual Basic for Applications
Dim shpNew As Shape
Dim wcbTemp As WebCheckBox

Set shpNew = ActiveDocument.Pages(1).Shapes _
    .AddWebControl(Type:=pbWebControlCheckBox, Left:=100, _
    Top:=123, Width:=17, Height:=12)

Set wcbTemp = shpNew.WebCheckBox

wcbTemp.Selected = msoTrue

See Also


Show: