WORKSHEET 1 = MAIN
WORKSHEET 2 = BINS
Copying all rows in BINS with 999 in Column C to MAIN.
Problem is that my 999 rows start in Row 1 of BINS and thus the top
entry is being left out (works from the bottom). For now, I have added a
blank row at the top. Is there a better way to fix this?
All help is appreciated.
WORKSHEET 2 = BINS
Copying all rows in BINS with 999 in Column C to MAIN.
Problem is that my 999 rows start in Row 1 of BINS and thus the top
entry is being left out (works from the bottom). For now, I have added a
blank row at the top. Is there a better way to fix this?
All help is appreciated.
PHP:
Dim lr2 As Long, r As Longlr = Sheets("Bins").Cells(Rows.Count, "C").End(xlUp).Row
lr2 = Sheets("Main").Cells(Rows.Count, "F").End(xlUp).Row
For r = lr To 2 Step -1
If Sheets("Bins").Range("C" & r).Value = "999" Then
Sheets("Bins").Rows(r).Copy Destination:=Sheets("Main").Range("A" & lr2 + 1)
lr2 = Sheets("Main").Cells(Rows.Count, "F").End(xlUp).Row
End If
Next r