I have this code;
Its in a template spreadsheet that gets repeatedly populated and saved as other filenames.
I want this code to run only on the template version, not on the saved as versions.
Is there a clever way I can achieve this?
TIA
Code:
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Worksheets("test").Range("A1:A11").Clear
End Sub
Its in a template spreadsheet that gets repeatedly populated and saved as other filenames.
I want this code to run only on the template version, not on the saved as versions.
Is there a clever way I can achieve this?
TIA