W
westis
Hi,
I need a macro to delete a command button, but not other shapes in the
document. How can I delete only the command button? And this must be a
solution that works in several different documents, some with other shapes,
some with the command button being the only shape.
The following code deletes all shapes:
For Each oShp In ActiveDocument.Shapes
oShp.Delete
Next oShp
I understand I must be able to identify the command button somehow.
Thanks!
I need a macro to delete a command button, but not other shapes in the
document. How can I delete only the command button? And this must be a
solution that works in several different documents, some with other shapes,
some with the command button being the only shape.
The following code deletes all shapes:
For Each oShp In ActiveDocument.Shapes
oShp.Delete
Next oShp
I understand I must be able to identify the command button somehow.
Thanks!