Hi everyone,
I am trying write a code that will perform an action when the value of a specific cell changes with an excel formula. In order for it to execute properly, the code needs to be passed the cell that changed value.
I can easily do this using
and using the target object, but I am trying to get the sub to execute when a formula changes the value of the cell, and I can't find an analogous object using
.
Is there something that I am missing? I'm sorry if there is a straightforward answer; I'm fairly new to VBA.
I am trying write a code that will perform an action when the value of a specific cell changes with an excel formula. In order for it to execute properly, the code needs to be passed the cell that changed value.
I can easily do this using
Code:
worksheet_change(ByVal Target as Range)
Code:
worksheet_calculate()
Is there something that I am missing? I'm sorry if there is a straightforward answer; I'm fairly new to VBA.