This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Returns the WebOptionButton object associated with the specified shape.
expression Required. An expression that returns one of the objects in the Applies To list.
This example creates a new Web option button and specifies that its default state is selected.
Dim shpNew As Shape Dim wobTemp As WebOptionButton Set shpNew = ActiveDocument.Pages(1).Shapes.AddWebControl _ (Type:=pbWebControlOptionButton, Left:=100, _ Top:=123, Width:=16, Height:=10) Set wobTemp = shpNew.WebOptionButton wobTemp.Selected = msoTrue