Hello,
I have two ranges: N11:N510 and S11:S510 that can change (vlookups) based on a data validation list in Cell E8. Regardless of the value in E8, I only want the worksheet change to trigger if a value in N11:N510 or S11:S510 changed.
If the change macro determines that a change has occurred in N11:N510, I will have a UDF input in that same row in column AQ. We'll call it UDF()
If the change macro determines that a change has occurred in S11:S510, UDF() will be input in that same row in column AU.
I realize a worksheet_change event is triggered only by a user change and not a formula, so perhaps the worksheet_calculate event is more appropriate, but I haven't used it before and am unsure of how to approach it.
Bonus points if you add a line to copy/paste the value to remove the UDF().
Let me know if you need further clarity.
Thanks
I have two ranges: N11:N510 and S11:S510 that can change (vlookups) based on a data validation list in Cell E8. Regardless of the value in E8, I only want the worksheet change to trigger if a value in N11:N510 or S11:S510 changed.
If the change macro determines that a change has occurred in N11:N510, I will have a UDF input in that same row in column AQ. We'll call it UDF()
If the change macro determines that a change has occurred in S11:S510, UDF() will be input in that same row in column AU.
I realize a worksheet_change event is triggered only by a user change and not a formula, so perhaps the worksheet_calculate event is more appropriate, but I haven't used it before and am unsure of how to approach it.
Bonus points if you add a line to copy/paste the value to remove the UDF().
Let me know if you need further clarity.
Thanks