List.StyleName property (Word)

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


expression. StyleName

expression Required. A variable that represents a 'List' object.


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

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

See also

List Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.