Can you use VBA code to access a corrupted file?

Slape

New Member
Joined
Oct 23, 2008
Messages
49
I have a file which I've tried numerous ways to open:

Excel's Recovery method to resore
Renaming
Moving from my OneDrive to desktop
Outside Software
Safe mode in Excel
Changing extension from .xlsx to .xls

As far as I know I have tried everything and wondering if it's possible to duplicate with VBA.

Thanks for your help
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
If File Recovery mode doesn't start, try using this manual process to recover your workbook:

  • Click File > Open.
  • Click the location and folder that contains the corruptedworkbook.
  • In the Open dialog box, select the corrupted workbook.
  • Click the arrow next to the Open button, and then click Open and Repair.
More items...



[h=3]Repair a corrupted workbook - Excel - Office Support - Office 365[/h]<cite class="iUh30" style="color: rgb(0, 102, 33); font-style: normal; font-size: 14px;">https://support.office.com/.../repair-a-corrupted-workbook-153a45f4-6cab-44b1-93ca-8...</cite>



 
Upvote 0
I tried that already.

I was able to get a previous version from my recycle bin. Whenever the computer is shut down without saving an Excel file, when you recover it after starting up Excel and save it, it sends that recovered file to the Recycle bin
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,552
Members
449,088
Latest member
davidcom

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