List Property
Applies To
ListFormat object.
Description
Returns a List object that represents the first formatted list contained in the specified ListFormat object. Read-only.
Remarks
If the first paragraph in the range for the ListFormat object is not formatted as a list, the List property returns nothing.
See Also
Lists property, ListTemplates property.
Example
This example returns the first list in the selection, and then it applies the first list template (excluding None) on the Numbering tab in the Bullets and Numbering dialog box. The selection can only contain one list.
Set mylist = Selection.Range.ListFormat.List
mylist.ApplyListTemplate ListTemplate:=ListGalleries(wdNumberGallery) _
.ListTemplates(1)