OK. Thanks anyway.
I guess it is not a big deal but if the macro security is on then when you open the sheet, the deleted button appears until you accept or decline the macro function. Then it disappears. Not vital but it is a bit untidy!
Thanks again,
Simon
User Profile
Collapse
-
-
Using vb macro to delete a Command Button and it's code in Excel
This code:-
Gets rid of the Button OK but it leaves the Code in the Command Buttton1_Click Subroutine and I should like to clear that too.Code:ActiveSheet.Shapes("CommandButton1").Delete
Can I do that in the vb macro?
No activity results to display
Show More
Leave a comment: