WritingStyleList Property
WritingStyleList Property
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Returns a string array that contains the names of all writing styles available for the specified language. Read-only Variant.
expression.WritingStyleList
expression Required. An expression that returns a Language object.
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 of the Visual Basic editor.
Sub WritingStyles()
Dim WrStyles As Variant
Dim i As Integer
WrStyles = Languages(wdEnglishUS).WritingStyleList
For i = 1 To UBound(WrStyles)
MsgBox WrStyles(i)
Debug.Print WrStyles(i) & " [" & Trim(Str$(i)) & "]"
Next i
End Sub