Hi there
I'm trying to run some code when the cell value changes to particular values.
However, the cells being monitored are protected cells that changing depending on an IF statement. The example below is the IF formula in the C2 cell:
I want a number of functions to run when the text in the cell changes to certain values depending on the result of the IF statement.
Do I use Worksheet_Calculate for this, or Worksheet_Change?
Can somebody give me some example code that might be a solution to this?
Thanks,
Liam
I'm trying to run some code when the cell value changes to particular values.
However, the cells being monitored are protected cells that changing depending on an IF statement. The example below is the IF formula in the C2 cell:
Code:
=IF(C10="","",IF(AND(C10>"07:00",C10<"18:00"),C10,""))
I want a number of functions to run when the text in the cell changes to certain values depending on the result of the IF statement.
Do I use Worksheet_Calculate for this, or Worksheet_Change?
Can somebody give me some example code that might be a solution to this?
Thanks,
Liam