Solved

Excel Unreadable File

Posted on 2011-09-19
6
407 Views
Last Modified: 2012-05-12
Hi,

I have an excel file which contains VBA code. The issue I have is that the the file is now unreadable and cannot be fixed. Our IT team restored a previous version for me which opened fine with all my code it. When I went to open it again it was unreadable despite me making no changes to it.

The VBA  code is code that I have used for the last couple of years nothing speical about it so do not believe that is an issue.

Has anyone else had a simialr problem or able to help find out what is causing this issue.

Thanks,
0
Comment
Question by:mcs26
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 6

Expert Comment

by:ckivml
ID: 36558969
Did you try to open it from any other Machine?.
0
 
LVL 6

Expert Comment

by:ckivml
ID: 36558970
did you try it in Excel safemode?
0
 

Author Comment

by:mcs26
ID: 36558997
Hi ckivml,

Thanks for the reply. Yes I tried it on another machine and the same result. No I haven't tried opening it in Excel safemode. How do you do that? Also I probably will not have permission to open it in safemode as out IT team disable pretty much everything.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst (Microsoft MVP / EE MVE) earned 500 total points
ID: 36559003
Hello mcs26,

that sounds scary.

Ask your IT team to produce another backup copy and see if you can open it. If you can, don't do anything but go straight  to the VBE and export all your modules to .bas files. This way, you can at least save the code while trying to figure out what went wrong with the workbook.

What version of Excel are you using? Were any upgrades or service packs applied recently? Is the file a shared workbook (bad, bad idea)?

Once you've created backup copies of the code via .bas files, can you save the workbook with a new name? Does the code still work in the copy?

You could create a new workbook and use copy and paste to move your data structure and formulas/formatting to the new file, then import the .bas files in the VBE.

These are my suggestions. I'm sure others will chip in with different approaches.

cheers, teylyn

0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 36559055
FYI, to open Excel in Safe Mode, hold down the Ctrl key while starting the application normally.
0
 

Author Comment

by:mcs26
ID: 36559085
Hi teyln,

Thanks for the reply. Yes litteraly just got the IT to restore the previous version. I have exported all my modules so like you say at least I have all my code. I'm using Excel 2003 but we do have an external addinn however had it for a while and written Thomson Reuters so I would imagine it to be pretty professional.

Think I will just try creating a new workbook and see what happens!
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question