I created a macro to copy a worksheet. The source worksheet contains a button to run the macro. So, when I copy the worksheet, the button gets copied along with any data. I would like to hide (or even better, remove) this button from the destination worksheet after copying it.
Does anyone know how to refer (in code terms) to a button on a worksheet? I only know how to refer to a button that is part of a form. Once I can refer to it, how can I delete it?
This is what I have so far. It doesn’t generate any errors…but it doesn’t remove the button
I've also tried the following without any result:![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
Bookmarks