Compare address to a range
Hi
Look at this:
Set isect = Intersect(Target, Range("BC3:BC7"))
If Not isect Is Nothing Then
or just:
If Not Intersect(Target, Range("BC3:BC7")) Is Nothing Then
Regards,
Per
"dhstein" skrev i meddelelsen
...
I have this code in an event macro:
If Target.Address = "$BC$3" Or Target.Address = "$BC$4" Or Target.Address
=
"$BC$5" Or Target.Address = "$BC$6" Or Target.Address = "$BC$7" Then
Is there a more compact way to write that statement? Thanks for any help
on
this.
|