Compartilhar via


Paragraph.SelectNumber Method

Word Developer Reference

Selects the number or bullet in a list.

Syntax

expression.SelectNumber

expression   Required. A variable that represents 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.

Visual Basic for Applications
  Sub SelectParaNumber()
    With Selection
        .Paragraphs(1).SelectNumber
        .Font.Size = 17
    End With
End Sub

See Also