How do I find out which of the two ranges the target is in?
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim IPJumpRange As Range
Dim OPJumpRange As Range
Set IPJumpRange = Range("B5:B14")
Set OPJumpRange = Range("B19:B28")
If Application.Sum(Range(Target.Offset(0, 1), Target.Offset(0, 14))) = 0 Then
Response = MsgBox("No volume data to drilldown on", vbOKOnly, "Select Drilldown")
Exit Sub
End If
If Intersect(Target, Union(IPJumpRange, OPJumpRange)) Is Nothing Then Exit Sub
SelectedSite = Target.Value
//I need to ID which range the target is in - the IP or OP JumpRange//
UpdatePgeFlds
End Sub
ziggy
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim IPJumpRange As Range
Dim OPJumpRange As Range
Set IPJumpRange = Range("B5:B14")
Set OPJumpRange = Range("B19:B28")
If Application.Sum(Range(Target.Offset(0, 1), Target.Offset(0, 14))) = 0 Then
Response = MsgBox("No volume data to drilldown on", vbOKOnly, "Select Drilldown")
Exit Sub
End If
If Intersect(Target, Union(IPJumpRange, OPJumpRange)) Is Nothing Then Exit Sub
SelectedSite = Target.Value
//I need to ID which range the target is in - the IP or OP JumpRange//
UpdatePgeFlds
End Sub
ziggy