Share via


BaseText Property [Publisher 2003 VBA Language Reference]

Returns a String that represents the text to which the specified phonetic text applies. Read-only.

expression.BaseText

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

Example

This example adds phonetic text to the selection and displays the text to which the phonetic text applies, which is the originally-selected text. This example assumes text is selected. If no text is selected, the message box will be blank.

Sub AddPhoneticText()
    With Selection.TextRange.Fields.AddPhoneticGuide _
            (Range:=Selection.TextRange, Text:="tray sheek")
        MsgBox "The base text is " & .PhoneticGuide.BaseText
    End With
End Sub

Applies to | PhoneticGuide Object