Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Represents a web text box control. The WebTextBox object is a member of the Shape object.
Remarks
Use the Shapes.AddWebControl method to create a new web text box.
Use the Shape.WebTextBox property to access a web text box control shape.
Example
This example creates a new web text box, specifies default text, indicates that entry is required, and limits entry to 50 characters.
Sub CreateWebTextBox()
With ActiveDocument.Pages(1).Shapes
With .AddWebControl(Type:=pbWebControlSingleLineTextBox, _
Left:=100, Top:=100, Width:=150, Height:=15).WebTextBox
.DefaultText = "Please Enter Your Full Name"
.RequiredControl = msoTrue
.Limit = 50
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.