I think when you said “Button Name” you will add “Button Caption”; please use the code below -
For Each o In ActiveDocument.InlineShapes
If o.OLEFormat.Object.Caption = "update" Then
o.Delete
End If
Next
Regards, Nilesh
PS: the title is case sensitive, so you can check it for the title.
source
share