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

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Can you open a second workbook and reach it from there by ALT+F11?
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,034
Members
448,940
Latest member
mdusw

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