Range.ListFormat Property (Word)
Published: July 16, 2012
Returns a ListFormat object that represents all the list formatting characteristics of a range. Read-only.
This example sets the variable myDoc to a range that includes paragraphs three through six of the active document. The example then either applies the default outline-numbered list format to the range or removes it, depending on whether or not the format was already applied to the range.
Set myDoc = ActiveDocument Set myRange = _ myDoc.Range(Start:= myDoc.Paragraphs(3).Range.Start, _ End:=myDoc.Paragraphs(6).Range.End) myRange.ListFormat.ApplyOutlineNumberDefault
This example applies the second list template on the Numbered tab in the Bullets and Numbering dialog box to all the paragraphs in the selection.