Hello,
Can anyone change the following code to select items in columns b to d instead of just b
Sub selectdiscontrg()
x = 0
For i = 1 To Range("s65536".End(xlUp).Row
If Range("s" & i).Text = "01" Then
If x < 1 Then
rgSel = "B" & i
Else
rgSel = rgSel & ",B" & i
End If
x = x + 1
Else
End If
Next i
Range(rgSel).Select
End Sub
Thankyou
Andrew
Can anyone change the following code to select items in columns b to d instead of just b
Sub selectdiscontrg()
x = 0
For i = 1 To Range("s65536".End(xlUp).Row
If Range("s" & i).Text = "01" Then
If x < 1 Then
rgSel = "B" & i
Else
rgSel = rgSel & ",B" & i
End If
x = x + 1
Else
End If
Next i
Range(rgSel).Select
End Sub
Thankyou
Andrew