Hello,
I have two sheets: RTW Report and Charges.
On the RTW Report sheet I want to take any cells that are not blank in column U down to my last row in that column and pull only non blank values over to my Charges sheet in range C18 down to last row in column C.
I have to take 2 off the U column since the last two rows should not be included.
Currently nothing happens when I run this.
Sheets("RTW Report").Activate
Dim lr As Long
lr = Cells(Rows.Count, "U").End(xlUp).Row
For Each Cell In Range("U2:U" & lr - 2)
If Cell.Value <> "" Then
Sheets("Charges").Range("C18").Value = Sheets("RTW Report").Range("U2:U" & lr - 2).Value
End If
Next Cell
Any advice? Thanks!
I have two sheets: RTW Report and Charges.
On the RTW Report sheet I want to take any cells that are not blank in column U down to my last row in that column and pull only non blank values over to my Charges sheet in range C18 down to last row in column C.
I have to take 2 off the U column since the last two rows should not be included.
Currently nothing happens when I run this.
Sheets("RTW Report").Activate
Dim lr As Long
lr = Cells(Rows.Count, "U").End(xlUp).Row
For Each Cell In Range("U2:U" & lr - 2)
If Cell.Value <> "" Then
Sheets("Charges").Range("C18").Value = Sheets("RTW Report").Range("U2:U" & lr - 2).Value
End If
Next Cell
Any advice? Thanks!