how do i delete a button and sub routine after it has run. actually, i want to remove it from the workbook it creates, not from the template it is in. background: the code creates a new workbook and names it similarly to the original. I would like to include something to NOT copy the command button and routine across into the new workbook. any ideas?