I am in need of some help with Microsoft Excel 2002 (SP3). I have created a spreadsheet with Macros and VBA behind it to do various data manipulations. Only limited data is actually stored so Excel was chosen as the approriate application for this work. Anyway, it all works super fine until I try and make a copy of the file. If I copy the file to a new location and leave the name the same and try opening the file, I get the error “A document with the name ‘MyExcelFile.xls’ is already open. You cannot open two documents with the same name, even if the documents are in different folders. …”
If I copy the file and rename it I get the error “MyExcelFile.xls’ could not be found. Check the spelling of the file name, and verify that the file location is correct…”
Now there is no where in my code that I refer to the file name MyExcelFile.xls nor is there in the macros. The security on my machine is set to medium to prompt with macros are encountered. The macros are saved into "This Workbook" so I would have assumed they would copy along with the workbook itself.
Do you have any idea what is happening here and how I can fix this? I have done some extensive searching but have not found any useful help.
Thanks in advance.
Snowcrash
If I copy the file and rename it I get the error “MyExcelFile.xls’ could not be found. Check the spelling of the file name, and verify that the file location is correct…”
Now there is no where in my code that I refer to the file name MyExcelFile.xls nor is there in the macros. The security on my machine is set to medium to prompt with macros are encountered. The macros are saved into "This Workbook" so I would have assumed they would copy along with the workbook itself.
Do you have any idea what is happening here and how I can fix this? I have done some extensive searching but have not found any useful help.
Thanks in advance.
Snowcrash