Hi
I have a VBA macro in a workbook which is invoked by clicking on a command button in a worksheet.
It is intended that the macro only ever be invoked once in the workbook. (Basically, the user puts some initialising data into a separate dedicated worksheet in the template workbook, runs the macro which does various things one-off with the initialising data, then deletes the worksheet containing that data.)
The macro already contains code which prevents its execution twice, but to tidy up the workbook I would also quite like it if the command button used to invoke it is also deleted from the workbook at the conclusion of the first execution of the macro. Can someone please give me guidance on that instruction?
Thanks.
Bookmarks