Share via


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

Concepts

ListFormat Object Members

ListFormat Object