InlineShape.IsPictureBullet property (Word)
True indicates that an InlineShape object is a picture bullet. Read-only Boolean.
Syntax
expression. IsPictureBullet
expression An expression that returns a 'InlineShape' object.
Remarks
Although picture bullets are considered inline shapes, searching a document's InlineShapes collection will not return picture bullets.
Example
This example formats the selected list if the list if formatted with a picture bullet. If not, a message is displayed.
Sub IsSelectionAPictureBullet(shp As InlineShape)
On Error GoTo ErrorHandler
If shp.IsPictureBullet = True Then
shp.Width = InchesToPoints(0.5)
shp.Height = InchesToPoints(0.05)
End If
Exit Sub
ErrorHandler:
MsgBox "The selection is not a list or " & _
"does not contain picture bullets."
End Sub
Use the following code to call the routine above.
Sub CallPic()
Call IsSelectionAPictureBullet(shp:=Selection _
.Range.ListFormat.ListPictureBullet)
End Sub
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for