HAVE I CORRUPTED MY WORKSHEET? - 7Days of work!!

Melimob

Active Member
Joined
Oct 16, 2011
Messages
396
Office Version
  1. 365
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.

Code:
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hi Sandy

I can't post on here.. have PM'd you.

thanks for responding.

I can't THANK SANDY666 ENOUGH!! S/he managed to recover my doc. I can't believe it - was feeling sick thinking I'd have to start from scratch.
This taught me to always save a copy - well noted and I will be sure to in future.

Again - THANK YOU A ZILLION for your help. I don't know what I'd do without you and all of you here offering your time to help others. It is truly truly appreciated.

thanks again!
Mel
 
Upvote 0
Oh my... now I will disappear for month... too much (zillion) for me :)

anyway, all's well that ends well
rotfl2.gif
 
Upvote 0

Forum statistics

Threads
1,223,957
Messages
6,175,622
Members
452,661
Latest member
Nonhle

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top