ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Deleting selected macro buttons (https://www.excelbanter.com/excel-programming/337586-deleting-selected-macro-buttons.html)

rabbi

Deleting selected macro buttons
 

Hello everyone

Is there an easy way of deleting the macro click buttons by the name
you have assigned them and not by it's automatic button number? It is
getting difficult to keep track of the number of buttons and when the
sheet is copied the button numbering changes on the copied sheet.

is there a way of using the button command eg.

ActiveSheet.Buttons.???

Any help would be appreciated

Thanks

Rabbi


--
rabbi
------------------------------------------------------------------------
rabbi's Profile: http://www.excelforum.com/member.php...o&userid=20178
View this thread: http://www.excelforum.com/showthread...hreadid=396728


Norman Jones

Deleting selected macro buttons
 
Hi Rabbi,

Try something like:

ActiveSheet.Buttons("MyButton1").Delete


---
Regards,
Norman



"rabbi" wrote in
message ...

Hello everyone

Is there an easy way of deleting the macro click buttons by the name
you have assigned them and not by it's automatic button number? It is
getting difficult to keep track of the number of buttons and when the
sheet is copied the button numbering changes on the copied sheet.

is there a way of using the button command eg.

ActiveSheet.Buttons.???

Any help would be appreciated

Thanks

Rabbi


--
rabbi
------------------------------------------------------------------------
rabbi's Profile:
http://www.excelforum.com/member.php...o&userid=20178
View this thread: http://www.excelforum.com/showthread...hreadid=396728





All times are GMT +1. The time now is 07:01 PM.

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