Table of contents
Collapse the table of content
Expand the table of content

WebCheckBox.Selected Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

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


expression. Selected

_expression_A variable that represents a WebCheckBox object.


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


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
© 2018 Microsoft