Shape.WebCheckBox property (Publisher)
Returns the WebCheckBox object associated with the specified shape.
Syntax
expression.WebCheckBox
expression A variable that represents a Shape object.
Return value
WebCheckBox
Example
This example creates a new web check box and specifies that its default state is selected.
Dim shpNew As Shape
Dim wcbTemp As WebCheckBox
Set shpNew = ActiveDocument.Pages(1).Shapes _
.AddWebControl(Type:=pbWebControlCheckBox, Left:=100, _
Top:=123, Width:=17, Height:=12)
Set wcbTemp = shpNew.WebCheckBox
wcbTemp.Selected = msoTrue
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for