M
Mike Mertes
Specifically, I'm using a select...case statement in a Worksheet_change()
procedure to test which cell is being changed by the user. In this example
you can see why my approach isn't suitable:
Select Target.Address(false,false)
Case "D9" to "D30"
DoSomeStuff
End Select
Alphabetically "D30" occurs before "D9" so this test fails.
I could test for each range individually like "D9","D10","D11",etc... but
that's long and sloppy. There must be an easier way to test if a range is
within or between another range? (BTW, I realize this won't work on a
selection across multiple rows and columns. I have accounted for that.)
TIA
-Mike
procedure to test which cell is being changed by the user. In this example
you can see why my approach isn't suitable:
Select Target.Address(false,false)
Case "D9" to "D30"
DoSomeStuff
End Select
Alphabetically "D30" occurs before "D9" so this test fails.
I could test for each range individually like "D9","D10","D11",etc... but
that's long and sloppy. There must be an easier way to test if a range is
within or between another range? (BTW, I realize this won't work on a
selection across multiple rows and columns. I have accounted for that.)
TIA
-Mike