Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete (destroy) excel CommandButton

Status
Not open for further replies.

ChrisBurch

IS-IT--Management
Jul 3, 2001
184
AU
How do I Delete (destroy) an Excel command button programmatically?

Chris

It worked yesterday.
It doesn't work today.
That's Windows!
 
Hi Chris,

The options depend a bit on what type of button it is but they should all be members of the Sheet's Shapes collections, so ..

Code:
Sheet1.Shapes("CommandButton1").Delete

.. or something similar should do it.

Enjoy,
Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top