Share via


AutoTextEntry.StyleName Property (Word)

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

Syntax

expression .StyleName

expression A variable that represents a AutoTextEntry object.

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

See Also

Concepts

AutoTextEntry Object

AutoTextEntry Object Members