ListFormat.List Property (Word)

Returns a List object that represents the first formatted list contained in the specified ListFormat object.


expression. List

expression An expression that returns a 'ListFormat' object.


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


This example returns the first list in the selection, and then it applies the first list template (excluding None) on the Numbered tab in the Bullets and Numbering dialog box (Format menu). The selection can only contain one list.

Set mylist = Selection.Range.ListFormat.List 
mylist.ApplyListTemplate _ 
 ListTemplate:=ListGalleries(wdNumberGallery) _ 

See also

ListFormat Object