Spreadsheet won't open

mjbeam

Well-known Member
Joined
Apr 6, 2002
Messages
756
I receive the following error while trying to open a particular spreadsheet:

This program has performed an illegal operation and will be shut down.

...then Excel closes. I can open other spreadsheets. I don't really care about the data, but I need to recover the code. There is about 2 days worth of VBA coding in it.

Any ideas?

Thanks...Mike
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
If the code itself is causing the problem, try opening it up with macros disabled to recover you code.
?
Tom
 
Upvote 0
Thanks for the reply.

No, it crashes Excel on loading, even with macros disabled.

-Mike
 
Upvote 0
You can open up the file in wordpad or notepad and pull some code from there, but it is not clean.
 
Upvote 0
I opened it in Notepad, wordpad, word and even with a disk editor. Not able to extract the code. It look like it tokenizes the keywords. I can see my variable names and comments.

Thanks...Mike
 
Upvote 0
Hi
Cold boot (that is re boot after coffee or 2 minutes)

Ermm try this open new doc and save as rubbish1


now only openexcel and this rubbish1 doc, now file open the doggy file and select NO to macros.. hiCTRl
F11 and see if lets you in...

et m know, few other ideas.

Can you mail me the doc to play with>>>

If so use JackintheUK@hotmail.com
 
Upvote 0
I sent the file off to a company that specializes in retreiving corrupt files, to get an estimate on how much they would charge to fix it. They took a while to get back to me so I decided to try upgrading to Excel 2002 becasue one of the improvements was supposed to be the ability to repair corrupt files. I was able to open the file in Excel 2002 so problem solved. Still not sure what happened to it in the first place though. I had been saving the file every 10-15 minutes and giving it new names every few hours. I had not closed Excel for several days. When I did finally close Excel and tried to reopen the latest version it was corrupt. That's when I discovered that all of the previous versions were corrupt as well, back several days. So now I know to close Excel and reopen the file every few hours so I don't risk losing so much work.

I did finally receive the estimate from the restoration company. They want $169.00 to fix the file.

Thanks for the suggestions...Mike
 
Upvote 0

Forum statistics

Threads
1,213,527
Messages
6,114,140
Members
448,551
Latest member
Sienna de Souza

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