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 calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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