ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Deleting Command Button (https://www.excelbanter.com/excel-programming/320542-deleting-command-button.html)

James W.[_2_]

Deleting Command Button
 
When using the following code I receive an
error...ActiveSheet.Shapes("CommandButton1").Delet e

I am assuming it is becuase I have placed this code within the event
CommandButton1_Click(). I would like to get this to work becuase after I
execute my other code I am self desctructing the code and the button.

Help is greatly appreciated!


All times are GMT +1. The time now is 08:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com