Hi All
I have the above code which copies the row if any data is within columns F:L The current code only copies the line if there is any data, if null does not bring back anythin.
What I would Like...
I would like to extend the columns from F:N.
Any if there is no data within F:L and some within L:N, to still copy the row.
Is this possible?
Thanks in advance
Andrew
Code:
'Check Range
'Get last row to check
lRowEnd = WS.Range("B" & Rows.Count).End(xlUp).Row
'Check for values in F:N
For R = 12 To lRowEnd
If LCase$(WS.Cells(R, "B").Text) <> "total" Then
For C = 6 To 12 'Cols F:N
If Application.CountA(WS.Range(WS.Cells(R, 6), WS.Cells(R, 12))) Then 'Copy row to Summary
lRowTo = lRowTo + 1
With wsSumm
.Rows(lRowTo).Value = WS.Rows(R).Value
.Cells(lRowTo, "A").Value = "Week " & sWeeks(iWeekPtr)
End With
Exit For
End If
I have the above code which copies the row if any data is within columns F:L The current code only copies the line if there is any data, if null does not bring back anythin.
What I would Like...
I would like to extend the columns from F:N.
Any if there is no data within F:L and some within L:N, to still copy the row.
Is this possible?
Thanks in advance
Andrew