This worked, but my question has become more complex. I have a macro that saves my active workbook, which is a template file, to a specified directory with a different filename. Is it possible to make it so that the saved file then has no macros with it (maybe the modules are deleted in this new file)? The code is as follows:
ChDir "\\Dir\Files\Newname"
Dim jobname
jobname = Range("A13").Text
ActiveWorkbook.SaveAs _
Filename:="\\Dir\Files\Newname\" & jobname, _
Password:="", _
WriteResPassword:="", _
ReadOnlyRecommended:=False, _
CreateBackup:=False