Share via


EchoAsterisks Property [Publisher 2003 VBA Language Reference]

MsoTriState

MsoTriState can be one of these MsoTriState constants.
msoCTrue
msoFalse Displays the text entered into a Web text box control.
msoTriStateMixed
msoTriStateToggle
msoTrue Displays asterisks in place of text entered into a Web text box control.

expression.EchoAsterisks

expression Required. An expression that returns one of the objects in the Applies To list.

Example

This example creates a Web text box control, sets the maximum limit as ten characters, specifies that entry is required, and masks the entry with asterisks when a user enters into the control.

Sub AddPasswordTextBox()
    With ActiveDocument.Pages(1).Shapes.AddWebControl _
            (Type:=pbWebControlSingleLineTextBox, Left:=100, _
            Top:=100, Width:=72, Height:=15)
        .Name = "Password"
        With .WebTextBox
            .Limit = 10
            .EchoAsterisks = msoTrue
            .RequiredControl = msoTrue
        End With
    End With
End Sub

Applies to | WebTextBox Object