Share via


ListBulletText Property [Publisher 2003 VBA Language Reference]

Returns a String representing the list bullet text from the specified paragraphs. Read-only.

expression.ListBulletText

expression Required. An expression that returns a ParagraphFormat object.

Remarks

The ListBulletText property is limited to one character.

This property is read-only. To set the ListBulletText property of a bulleted list, use the SetListType method.

Returns an "Access Denied" message if the list is not a bulleted list.

Example

This example tests to see if the list type is a bulleted list. If it is, a test is made to see that the list bullet text is set to "*". If it is not, the SetListType method is called and passed pbListTypeBullet as the pbListType parameter and "*" as the BulletText parameter.

Dim objParaForm As ParagraphFormat

Set objParaForm = ActiveDocument.Pages(1).Shapes(1) _
.TextFrame.TextRange.ParagraphFormat

With objParaForm
    If .ListType = pbListTypeBullet Then
        If Not .ListBulletText = "*" Then
            .SetListType pbListTypeBullet, "*"
        End If
    End If
End With

Applies to | ParagraphFormat Object