CanContinuePreviousList Method Example

This example checks to see whether numbering from a previous list is disabled. If it isn't disabled, the current list template is applied with numbering set to continue from the previous list. The selection must be within the second list, or this example creates an error.

Set myLF = Selection.Range.ListFormat
temp = myLF.CanContinuePreviousList( _
    ListTemplate:=myLF.ListTemplate)
If temp <> wdContinueDisabled Then
    myLF.ApplyListTemplate ListTemplate:=myLF.ListTemplate, _
        ContinuePreviousList:=True
End If