WebCheckBox.Value property (Publisher)

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 that its initial state is selected.

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

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.