Hello,
I am attempting to offset a range. Because the range is non-contiguous the code I have come up with will not work.
Private Sub CommandButton1_Click()
Range(Selection.Offset(0, 3), Selection.Offset(0, -3)).Select
End Sub
When my range is selected and I hit the button instead of offsetting every cell highlighted the offset stops at the first non highlighted cell.
I have no experience with VBA except what I could find on-line.
I would greatly appreciate any suggestions.
I am attempting to offset a range. Because the range is non-contiguous the code I have come up with will not work.
Private Sub CommandButton1_Click()
Range(Selection.Offset(0, 3), Selection.Offset(0, -3)).Select
End Sub
When my range is selected and I hit the button instead of offsetting every cell highlighted the offset stops at the first non highlighted cell.
I have no experience with VBA except what I could find on-line.
I would greatly appreciate any suggestions.