Share via


List.StyleName Property

Word Developer Reference

Returns the name of the style applied to the specified AutoText entry. Read-only String.

Syntax

expression.StyleName

expression   Required. A variable that represents a List object.

Example

This example creates an AutoText entry and then displays the style name of the entry.

Visual Basic for Applications
  Set myentry = NormalTemplate.AutoTextEntries.Add(Name:="rsvp", _
    Range:=Selection.Range)
MsgBox myentry.StyleName

See Also