Sub delete_shapes()
Dim i As Integer
ActiveSheet.Shapes.SelectAll
For i = 1 To 4 Step 1
If i < 5 Then
For Each shape In ActiveSheet.Shapes
'it has to match with shapes of text "NO"
If Selection.ShapeRange(i).TextFrame2.TextRange.Characters.Text = "No" Then
shape.Select
Selection.Delete
Else
Debug.Print Selection.ShapeRange(i).TextFrame2.TextRange.Characters.Text
' running through the range of index
i = i + 1
End If
Next shape
End If
Next i
End Sub
