StyleDesc$()

Syntax

StyleDesc$(StyleName$)

Remarks

Returns the description of the specified style in the active document. For example, a typical description for the Heading 1 style is "Normal + Arial®, 14 pt, Bold, Space Before 12 pt After 3 pt." If StyleName$ does not exist, StyleDesc$() returns an empty string ("").

Example

This example displays the description of the Heading 1 style in a message box:


infostyle$ = "Heading 1"
MsgBox StyleDesc$(infostyle$), "Description for " + infostyle$

See Also

CountStyles(), FormatStyle, StyleName$()