Hello all,
I need to select all ranges A:C where there is a "TRUE" mentioned in A
The following code only selects the first occurance [from the bottom]
Any ideas?
I need to select all ranges A:C where there is a "TRUE" mentioned in A
The following code only selects the first occurance [from the bottom]
Any ideas?
Code:
Sub test()
Dim lastrow As Long, icell As Long
lastrow = Range("A" & Rows.Count).End(xlUp).Row
For icell = 1 To lastrow
If Range("A" & icell) = True Then
Range("A" & icell, "C" & icell).Select
Else
End If
Next icell
End Sub