Private Sub Worksheet_Change(ByVal Target As Range)
'does not execute if not in the range
If Intersect(Target, Range("bc3:bc7")) Is Nothing Then Exit Sub
End Sub
'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
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"dhstein" <(E-Mail Removed)> wrote in message
news:B7E07DAC-C0A3-4CB9-9646-(E-Mail Removed)...
>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.