OK, see the example attached. It contains a Template worksheet with some sample data. Right click on the Template and make a copy. When you copy the template, it copies the whole worksheet including the button AND the code behind the worksheet.
If you click on the button on a COPY of the template it will inform you which sheet's cells will be cleared and asking for confirmation. If you select "yes", it will clear the cells; if you select "no", it will not.
If you click on the button on the Template worksheet, nothing happens. This is to protect the data on the template for testing purposes.
Regards, TMS
Bookmarks