Hi
I am using Excel 2003 and I'm quite new to VBA.
I have an Excel document that I want to "save as" a copy once it's been updated which I can do by using:
ActiveWorkbook.SaveCopyAs Filename:="E:\My Documents\myfolder\ExcelFile.xls"
Note that the code above is in Sub Workbook_Open()
But if I then try to access ExcelFile.xls of course I can't because the code above is in the document because it "saved as". How do I write this code so it doesn't apply to the the saved copy?
Thanks.
I am using Excel 2003 and I'm quite new to VBA.
I have an Excel document that I want to "save as" a copy once it's been updated which I can do by using:
ActiveWorkbook.SaveCopyAs Filename:="E:\My Documents\myfolder\ExcelFile.xls"
Note that the code above is in Sub Workbook_Open()
But if I then try to access ExcelFile.xls of course I can't because the code above is in the document because it "saved as". How do I write this code so it doesn't apply to the the saved copy?
Thanks.