Workbook_Open not running when workbook opens

mwollert

New Member
Joined
Jul 13, 2020
Messages
27
Office Version
  1. 365
Platform
  1. Windows
I have a workbook that I have been using for years. Suddnely yesturday the Workbook_Open in ThisWorkbook no longer runs when the workbook opens. Once the workbook opens I can run the the Workbook_Open routine and all others macros. I have check that Application.EnableEvents is set tot True. I have ensured that macros are enabled. I have replaced the Workbook_Open with a simple MsgBox and it still will not execute at open.

I have gone back to the last time the Workbook_Open functioned properly (the macro creates a copy of the file) but it will not trigger.

I have created new workbooks and the Open routine works fine. I have even copy and pasted the problem WOrkbook_Open to a new workbok and it functions as designed.

I am at a loss as to why this particular file not longer triggers the macro.

Any suggestions are welcome.
 

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.
Did anything change in the workbook yesterday (or the day before if it didn't work at any point yesterday)?
 
Upvote 0
Did anything change in the workbook yesterday (or the day before if it didn't work at any point yesterday)?
No macros had been changed when Workbook_Open stopped functioning. Date in some worksheets changed as I update the workbook many times a day. I have used backups from weeks ago when I know the open macro was working and it no longer executes on the backup files either.

It is just one workbook. All other workbooks I have will trigger the Open macro.

The file is on onedrive and I tried moving to local drive and still no success.

Very frustrating!
 
Upvote 0
Is there any conditional formatting in the workbook that use UDFs?
 
Upvote 0
Is there any conditional formatting in the workbook that use UDFs?
Lots of the sheets have conditional formation. Not sure what UDF's are. All of the conditional formating is based on values.
 
Upvote 0
A UDF is a function written in VBA.
 
Upvote 0
Try copying the entire Workbook_Open procedure and pasting it below. In the old procedure, rename it to e.g. Workbook_Open_Old. Save the file, close and reopen.

Artik
 
Upvote 0
Thank you for the suggestion. I have tried that and still not successfull in getting Workbook_Open to trigger when it should.
 
Upvote 0
Can you remove all data (but leave the code and formatting) and post the workbook somewhere (eg OneDrive/deopbox) for us to have a look at?
 
Upvote 0

Forum statistics

Threads
1,215,068
Messages
6,122,950
Members
449,095
Latest member
nmaske

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