Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Impossible to open excel workbook

Status
Not open for further replies.

Enk

Programmer
Oct 28, 2006
14
IT
Hi everybody.
I have an enormous problem.
I've built an excel 2000 workbook with a lot of vba code, modules and userforms.
All of a sudden, one day, I tried to open it and NOTHING!!!!
A message appeared (and still appears each time I open the wb), saying something like this: "an error occurred on module......not valid page...." and so on.... (the message is not exactly like that because I translated it here in english as my excel version is not in english, but I hope you understood what message it is).
So: does anybody give me any suggestion about how to open or recover my file (or, at least, how to recover the vba modules and the userforms, which are the most important part of the wb).
Thank you all by now for your kind replies.
Bye
Nick
 
PHV thank you for replying.
If I could restore the backup I would have done it 17 posts ago :).
I've no backup of that file. I know, it's my fault, but...
what can I do now?
Thanks
Nick
 
Short of opening the file in Notepad and using what you find as a rather garbled aide memoire when you are re-writing your code, I can't suggest anything. Think positive, it's an opportunity to refactor [ponder]

For the future, regular back-ups, or better still some kind of source control system is the way forward...

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::perlDesignPatterns)[/small]
 
If you send the file to me I can try and look at it for you, two minds may be better than one in this case.
 
Thank you Steve.
I think that at last I'm going to buy one of those expensive softwares that fix this kind of problems.
Next time.... backup :)
Bye
Nick
 
Hi Sam, tanks for replying.
Yes, I've tried that, but all the methods included in that page assume that it's still possible to open the damaged file.
My problem is that my file is "Untouchable". I mean you cannot open it neither with macros enabled nor with macros disabled. As soon as the file is loaded by excel the message error appears.
Anyway, those methods (saving in sylk or htm or doc format) let you recover only data from the sheets, not from vba modules and userforms.
Unfortunately.
Thank you anyway
Bye
Nick
 
Nick

OpenOffice can open Excel files. I think it attempts to convert macros to OOBasic with a wizard, but I read somewhere that it comments out the original code just in case the wizard doesn't work properly. This might allow you to recover the code.

As a last ditch attempt before forking out for a proprietary recovery method, it might be worth a try.

Just remember that when you install it, uncheck the file association boxes so it doesn't mess up your existing Office associations...

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::perlDesignPatterns)[/small]
 
Hi Steve.
Thanks for replying.
I'll try it as soon as possible and I'll let you know.
Thank you so much
Regards
Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top