ParagraphFormat.ListNumberSeparator property (Publisher)

Sets or retrieves a PbListSeparator constant that represents the list separator of the specified paragraphs. Read/write.



expression A variable that represents a ParagraphFormat object.

Return value



You must set the ListType property to a numbered list type before you set the ListNumberSeparator property. Returns an "Access Denied" message if the list is not a numbered list.

The ListNumberSeparator property value can be one of the PbListSeparator constants.


This example tests to see if the list type is a numbered list, specifically pbListTypeArabic (PbListType enumeration). If the ListType property is set to pbListTypeArabic, the ListNumberSeparator property is set to pbListSeparatorParenthesis. Otherwise, the SetListType method is called and passes pbListTypeArabic as the Value (PbListType) parameter, and then the ListNumberSeparator property can be set.

Dim objParaForm As ParagraphFormat 
Set objParaForm = ActiveDocument.Pages(1).Shapes(1) _ 
With objParaForm 
 If .ListType = pbListTypeArabic Then 
 .ListNumberSeparator = pbListSeparatorParenthesis 
 .SetListType pbListTypeArabic 
 .ListNumberSeparator = pbListSeparatorParenthesis 
 End If 
End With 

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.