ListType Property
Applies To
ListFormat object.
Description
Returns the type of lists that are contained in the range for the specified ListFormat object. Can be one of the following WdListType constants: wdListBullet, wdListListNumOnly, wdListMixedNumbering, wdListNoNumbering, wdListOutlineNumbering, or wdListSimpleNumbering. Read-only Long.
Remarks
The constant wdListListNumOnly refers to LISTNUM fields, which are fields that can be added within the text of a paragraph.
See Also
SingleList property, SingleListTemplate property.
Example
This example checks to see if the first list in the active document is a simple numbered list. If it is, the fourth list template on the Numbered tab of the Bullets and Numbering dialog box is applied.
Set myList = ActiveDocument.Lists(1)
If myList.Range.ListFormat.ListType = wdListSimpleNumbering Then
myList.ApplyListTemplate ListTemplate:=ListGalleries _
(wdNumberGallery).ListTemplates(4)
End If