WebCheckBox.Selected property (Publisher)

Specifies whether a web check box or option button is selected. Read/write.

Syntax

expression.Selected

expression A variable that represents a WebCheckBox object.

Remarks

The Selected property value can be one of the MsoTriState constants declared in the Microsoft Office type library.

Example

This example adds a new web check box to the first page of the active publication and then selects it.

Sub AddNewWebCheckBox() 
 With ActiveDocument.Pages(1).Shapes.AddWebControl _ 
 (Type:=pbWebControlCheckBox, Left:=100, _ 
 Top:=100, Width:=100, Height:=12) 
 .WebCheckBox.Selected = msoTrue 
 End With 
End Sub

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.