Range.PhoneticGuide method (Word)
Adds phonetic guides to the specified range.
Syntax
expression. PhoneticGuide
( _Text_
, _Alignment_
, _Raise_
, _FontSize_
, _FontName_
)
expression Required. A variable that represents a Range object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
Text | Required | String | The phonetic text to add. |
Alignment | Optional | WdPhoneticGuideAlignmentType | The alignment of the added phonetic text. |
Raise | Optional | Long | The distance (in points) from the top of the text in the specified range to the top of the phonetic text. If no value is specified, Microsoft Word automatically sets the phonetic text at an optimum distance above the specified range. |
FontSize | Optional | Long | The font size to use for the phonetic text. If no value is specified, Word uses a font size 50 percent smaller than the text in the specified range. |
FontName | Optional | String | The name of the font to use for the phonetic text. If no value is specified, Word uses the same font as the text in the specified range. |
Remarks
For more information on using Word with East Asian languages, see Word features for East Asian languages.
Example
This example adds a phonetic guide to the selected phrase "tres chic."
Selection.Range.PhoneticGuide Text:="tray sheek", _
Alignment:=wdPhoneticGuideAlignmentCenter, _
Raise:=11, FontSize:=7
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.