I am looping through a directory of spreadsheets to copy and paste variable rows (set column range) to a master spreadsheet. I am having a problem with one line of code - the destination paste part. Each spreadsheet in the directory will open and copy and paste but I can't get the pasting of subsequent spreadsheets to paste further down the master sheet. It just overlays the data for every spreadsheet until the end of the directory list.
.Range(("A2:AZ") & Range("B" & Rows.Count).End(xlUp).Row).Copy _
Dataset.Range("A" & (emptyRow)).End(xlUp).Offset(1, 0)
emptyRow (Integer) is the row number of the next empty row in the master spreadsheet (it is correct as I have tested this).
Thanks in advance.
Bookmarks