Hi All
I have quite an interesting little conundrum here
I like to use the following VBA in many of my workbooks, in combination with a formula in the conditional formatting to change the background colour of any cells depending on whether they contain a formula
VBA
Conditional Formatting:Please Login or Register to view this content.
=NOT(HasFormula(B4))
But it would appear using this formula in the condition formatting somehow stops the Workbook_Open() event from firing?
You can have one but not both. See attached workbook to test.
A MsgBox saying 'hello' should appear on opening. But it won't fire until the conditional formatting is turned off
Perhaps this is an Excel bug?
This person seemed to find a workaround in their last post, but I don't really understand their answer
https://www.vbforums.com/showthread....vent-won-t-run
If anyone can suggest another way to highlight cells in a table that don't contain a formula without using the above method it would be a great help.
All the best
V
Bookmarks