VBA Code Corruption (HELPP)

JOCoyle

New Member
Joined
Sep 30, 2016
Messages
11
So.. I was happily working on my macro enabled workbook in excel 2010 and I decided to finish working on the document so went to close the workbook.

It asked me If I wanted to save the file, I clicked yes, it gave me an error saying that I am using a reserved word for one of my Sub's within the code.

This sub was called "DeleteRecord", the only option was Ok or Help and was vbCritical. I clicked ok as I saw this as the only option and now I am unable to open the file at all. I have tried the following:
- Excel's Safe Mode (by holding ctrl when opening the file),
- Stopping Macro's from running on start (by holding shift when opening the file),
- Both of the above combined.
Now I don't have a previous version of this file and I am not an admin on the server so have barely enough rights on the system to perform basic tasks (for example I'm unable to access command prompt, run or even the task manager.

Is there some way of recovering this file or even simply accessing the code of the document without opening it? If not is there any way to access any of the code from outside the program?

Any help is greatly appreciated.

-JC
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,221,467
Messages
6,160,018
Members
451,611
Latest member
PattiButche

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