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

WebCheckBox.Value Property (Publisher)

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

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

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