ElvisSteel
Board Regular
- Joined
- Mar 23, 2009
- Messages
- 122
Hi,
I need to run some code whenever a user changes the value in certain cells.
Currently the code is...
or sometimes...
which work fine, but I want to refer to a defined name rather than C4, so that if the address changes due to inserting/deleting rows or columns I don't have to change the code.
Is this possible?
I have tried
Have I missed something obvious?
Thanks
I need to run some code whenever a user changes the value in certain cells.
Currently the code is...
Code:
If Not Intersect(Target, Range("C4")) Is Nothing Then
Do Something
End If
Code:
If ActiveCell.Address = "$C$4" Then
Do Something
End If
Is this possible?
I have tried
Code:
If Not Intersect(Target, Range("RangeName")) Is Nothing Then
Do Something
End If
Have I missed something obvious?
Thanks