SelectNumber Method

Microsoft Word Visual Basic

expression.SelectNumber

expression    Required. An expression that returns a Paragraph object.

Remarks

If the SelectNumber method is called from a paragraph, selection, or range that does not contain a list, an error message is displayed.

Example

This example selects the bullet or number for the list that contains the selected paragraph in the active document, and then it increases the font size of the bullet or number to 17 points. This example assumes that the first paragraph in the selection is formatted as a bulleted or numbered list.

Sub SelectParaNumber()
    With Selection
        .Paragraphs(1).SelectNumber
        .Font.Size = 17
    End With
End Sub