M
mjack003
Hi,
I have this code here for a selectionchange event on one of m
worksheets.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Range(Cells(Target.Row, 4), _
Cells(Target.Row + Target.Rows.Count - 1, 30)).Select
End Sub
This works great as long as the range I want is contiguous. How woul
I go about changing this code to only keep selected rows if the use
holds the CTRL key and selects random rows? I don't know if this i
even possible but I've played with the intersect method and thi
doesn't seem to be a solution.
Any input is appreciated.
Thanks,
Mjac
I have this code here for a selectionchange event on one of m
worksheets.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Range(Cells(Target.Row, 4), _
Cells(Target.Row + Target.Rows.Count - 1, 30)).Select
End Sub
This works great as long as the range I want is contiguous. How woul
I go about changing this code to only keep selected rows if the use
holds the CTRL key and selects random rows? I don't know if this i
even possible but I've played with the intersect method and thi
doesn't seem to be a solution.
Any input is appreciated.
Thanks,
Mjac