Help with Macro Enabled Excel file closing automatically when I try to open it

PeetKoekemoer

New Member
Joined
Oct 26, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I have created an excel macro enabled file. I have some macros in the file. I changed a macro and there is obviously a bug in my macro. Now when I open my file the file automatically closes. I am able to open the file in protected view. As soon as I click on "Enable Editing" the file closes. While in protective view and enabled is disabled, how can I get into my macro to fix the issue as I cannot see and macros in VBA while the protected view is enabled and Edit mode is disabled.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Ferdib

New Member
Joined
Jan 7, 2020
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Can you open a second workbook and reach it from there by ALT+F11?
 

Logit

Well-known Member
Joined
Aug 31, 2016
Messages
4,407
While the workbook is loading, press CTRL/BREAK keys at the same time. From your description it sounds like you will
only be able to "break" into the code by pressing those keys at the correct split second. It may take a number of times
for it to be successful.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,259
Messages
5,836,284
Members
430,415
Latest member
jeremyweck

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
Top