Good Morning,
Can someone help me modify my code, to select all the rows available starting in B1 ?
The range of rows can vary so basically its unknown to me, until I pull the data from my source.
Thank you
Can someone help me modify my code, to select all the rows available starting in B1 ?
The range of rows can vary so basically its unknown to me, until I pull the data from my source.
Thank you
VBA Code:
Sub Test()
Dim rng As Range, rcell As Range
Set rng = Range("B1:B23")
For Each rcell In rng.SpecialCells(xlCellTypeBlanks)
If Application.CountIf(rcell.Resize(, 18), "<>") = 0 Then
rcell.Resize(, 13).Interior.ColorIndex = 15
End If
Next rcell