WritingStyleList Property

Applies To

Language object.

Description

Returns a string array that contains the names of all writing styles available for the specified language. Read-only Variant.

See Also

ActiveWritingStyle property.

Example

This example displays each writing style available for U.S. English. Each writing style and its number in the array are also displayed in the Immediate window in the Visual Basic editor.

WrStyles = Languages(wdEnglishUS).WritingStyleList
For i = 1 To UBound(WrStyles)
    MsgBox WrStyles(i)
    Debug.Print WrStyles(i) & " [" & Trim(Str$(i)) & "]"
Next i