Macro doesn't start

abourgault

New Member
Joined
Oct 24, 2007
Messages
43
Hi all,

I have a workbook with several VBA macro.

One of them is in the ThisWorkbook module. It is a Workbook_open macro.
Usually when I open the workbook that macro is triggered and does its job. But often after I have added code in other modules not related to this one, I save and close and when re-opening nothing happen.

I have to revert to the last working version and copying all the changes I have made to have a workbook that works as intended.

Do you have any hints about what could cause that?

thanks,

André
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Check for this line of code

Code:
Application.enableEvents = false

If its in there, make sure you add that line again but add true to it. you may have to do an "unhook" in a sense.

Code:
Sub unhook
 
Application.enableEvents = True
 
End Sub
 
Upvote 0
Thanks bjurney,

There's no such code in my project.

To add to the explanation of the problem, once the workbook is open if I try to save it an error message appears saying that Microsoft Excel has stopped working.

André
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,849
Members
452,948
Latest member
UsmanAli786

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