ListFormat.SingleList property (Word)

True if the specified ListFormat object contains only one list. Read-only Boolean.

Syntax

expression. SingleList

expression An expression that returns a 'ListFormat' object.

Example

This example checks the selection to see whether it only contains one list. If it does, the example applies the default numbered list template to the selection.

temp = Selection.Range.ListFormat.SingleList 
If temp = True Then 
 Selection.Range.ListFormat.ApplyNumberDefault 
End If

See also

ListFormat Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.