Hi all
I'm losing the will here.. I've just spent a week working on a VBA project.
My last step was to copy and save as a new file.. tried the below code which didn't work but now it won't let me open my file?
It states:
Excel cannot open the file because the file format or file extension is not valid.
Verify the file has not been corrupted and that the file extension matches the format of the file.
I notice in the code it had .xls but because I had a debug error anyhow I didn't think it worked AND I wanted it to save a copy as a new file anyhow.
I'm close to tears thinking that all my work could be lost? Please any advice gratefully received.
I'm losing the will here.. I've just spent a week working on a VBA project.
My last step was to copy and save as a new file.. tried the below code which didn't work but now it won't let me open my file?
It states:
Excel cannot open the file because the file format or file extension is not valid.
Verify the file has not been corrupted and that the file extension matches the format of the file.
I notice in the code it had .xls but because I had a debug error anyhow I didn't think it worked AND I wanted it to save a copy as a new file anyhow.
I'm close to tears thinking that all my work could be lost? Please any advice gratefully received.
Code: