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.
Returns or sets a String that represents the default text in a web text box control. Read/write.
Syntax
expression.DefaultText
expression A variable that represents a WebTextBox object.
Return value
String
Example
This example creates a new web text box control in the active publication, sets the default text and the character limit for the text box, and specifies that it is a required control.
Sub AddWebTextBoxControl()
With ActiveDocument.Pages(1).Shapes.AddWebControl _
(Type:=pbWebControlMultiLineTextBox, Left:=72, _
Top:=72, Width:=300, Height:=100).WebTextBox
.DefaultText = "Please enter text here."
.Limit = 200
.RequiredControl = msoTrue
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.