So this is a long running issue for me, on and off. I have a stack of spreadsheets that have workbook_open events to do a number of things. So today one of them decided not to do anything on opening. I stripped the code and selected a new Workbook_Open event from the VBE dropdown boxes and just put a message box in it. It refused to run...
After a bit of research there is some question over whether conditional formatting interferes with it. So I stripped this off the front page and saved it as a different name. On opening it ran, so thought I had sorted it. I went to show someone it and it didn't work (barely moments after it had). SO went to open the original (with the conditional formatting). Lo and behold it worked!!
So after some back and forth it seems that if I open Excel and open a workbook (either one) the code won't run. But if I then open the other one it does! I have run application.enableevents=true a spectacular number of times but no difference to the result. And it is enable based on a short VBA script to tell me if it is or not.
Anybody got any ideas as this is getting more than a little frustrating? Thanks
(Excel 2016)
After a bit of research there is some question over whether conditional formatting interferes with it. So I stripped this off the front page and saved it as a different name. On opening it ran, so thought I had sorted it. I went to show someone it and it didn't work (barely moments after it had). SO went to open the original (with the conditional formatting). Lo and behold it worked!!
So after some back and forth it seems that if I open Excel and open a workbook (either one) the code won't run. But if I then open the other one it does! I have run application.enableevents=true a spectacular number of times but no difference to the result. And it is enable based on a short VBA script to tell me if it is or not.
Anybody got any ideas as this is getting more than a little frustrating? Thanks
(Excel 2016)