I have an excel template that the Workbook - Open event has been set to call a macro attached to that workbook. After the macro runs, it saves the file in an .xls format. My problem is that when you open the saved file, the macro activates. I've been able to disable it for now by changing the Open event to:
is there a way to not have the vba code attached to the new file? Could there be something wrong with my save command? (See below)
Thanks for any help
Code:
If activeworkbook.Name = "ConvRecn.xls" then
Call Convrecn
End if
is there a way to not have the vba code attached to the new file? Could there be something wrong with my save command? (See below)
Code:
ActiveWorkbook.SaveAs FileName:=savename$, FileFormat:=xlNormal, Password:="", _
WriteResPassword:="", ReadOnlyRecommended:=False, CreateBackup:=False
Thanks for any help