If this is the only worksheet in the workbook then Excel won't allow you to delete it. Try adding a blank tab at the end as a buffer in your file, then hide the blank tab afterwards.