Hello,
please explain me the line:
Set rgD = wbD.Worksheets("Arkusz1").Cells(Rows.Count, "B").End(xlUp).Offset(1, -1)
used for
Dim ws As Worksheet, rg As Range 'variables for input file
Dim wbD As Workbook, rgD As Range 'variables for output file
Because I'd like to move to the new column, first line, every time when the iteration of loop is done. It doesn't work because I don't quite understand how to modify this line (Set rgD), especially I don't get Cells(Rows.Count, "B") and End(xlUp) and what for offset is here (what offset is I know).
Thanks in advance!
Regards!
Bookmarks