Thanks guys but how can I select only those shapes that have a name like "WordArt 842" (and show the name for confirmation of delete)?
Something like this :
Sub Demo()
Dim i As Long
Dim myString as String
With ActiveDocument
For i = .InlineShapes.Count To 1 Step -1
With .InlineShapes(i)
If .Type = wdInlineShapePicture Then
myString = substring(wdInlineShapePicture.name,1,7)
if myString = "WordArt" Then
.Select
If MsgBox("Delete " & wdInlineShapePicture.name & " ?", vbYesNo, "DELETE") = vbYes Then .Delete
End If
End If
End With
Next
End With
End Sub