StyleName Property Example

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

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