WebCheckBox object (Publisher)

Represents a web check box control. The WebCheckBox object is a member of the Shape object.

Remarks

Use the Shapes.AddWebControl method to create a web check box.

Use the Shape.WebCheckBox property to access a web check box control shape.

Example

This example creates a new web check box and specifies that its default state is selected; it then adds a text box next to it to describe it.

Sub CreateNewWebCheckBox() 
 With ActiveDocument.Pages(1).Shapes 
 With .AddWebControl(Type:=pbWebControlCheckBox, Left:=100, _ 
 Top:=123, Width:=17, Height:=12).WebCheckBox 
 .Selected = msoTrue 
 End With 
 With .AddTextbox(Orientation:=pbTextOrientationHorizontal, _ 
 Left:=118, Top:=120, Width:=70, Height:=15) 
 .TextFrame.TextRange.Text = "Description text for web check box" 
 End With 
 End With 
End Sub

Properties

See also

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.