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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
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,215,460
Messages
6,124,949
Members
449,198
Latest member
MhammadishaqKhan

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