ListFormat.ListTemplate property (Word)

Returns a ListTemplate object that represents the list formatting for the specified ListFormat object.

Syntax

expression. ListTemplate

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

Remarks

A list template includes all the formatting that defines a particular list. Each of the seven formats (excluding None) found on each of the tabs in the Bullets and Numbering dialog box corresponds to a list template. Documents and templates can also contain collections of list templates.

If the first paragraph in the range for the ListFormat object is not formatted as a list, the ListTemplate property returns Nothing.

Example

This example checks to see which list template is used for the second paragraph in the active document, and then it applies that list template to the selection.

Set myltemp = ActiveDocument.Paragraphs(2).Range. _ 
 ListFormat.ListTemplate 
Selection.Range.ListFormat.ApplyListTemplate ListTemplate:=myltemp

See also

ListFormat 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.