BulletFormat.Number property (PowerPoint)
Returns the bullet number of a paragraph when the Type property of the BulletFormat object is set to ppBulletNumbered. Read-only.
Syntax
expression.Number
expression A variable that represents a BulletFormat object.
Return value
Long
Remarks
If this property is queried for multiple paragraphs with different numbers, then the value ppBulletMixed is returned. If this property is queried for a paragraph with a type other than ppBulletNumbered, then a run-time error occurs.
Example
This example returns the bullet number of paragraph one in the selected text range to a variable named myParnum
.
With ActiveWindow.Selection
If .Type = ppSelectionTextRange Then
With .TextRange.Paragraphs(1).ParagraphFormat.Bullet
If .Type = ppBulletNumbered Then
myParnum = .Number
End If
End With
End If
End With
See also
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.