I have three templates that basically do the same thing - copy information from source spreadsheets and paste into a master spreadsheet using very similar formula
Two of them work fine but the third one only copies and pastes 1 row from each source spreadsheet for some reason - the codes used are identical to one another apart from the references
Is someone able to tell me what might be causing this from the codes below?
Thanks for your help
'Copy data
wb.Sheets("***").Columns("A:Z").EntireColumn.Hidden = False
With wb.Sheets("***")
.Range("A2", .Range("Z2").End(xlDown)).Copy
End With
'Paste data
Windows("*** Master.xlsm").Activate
Sheets("***").Range("A" & Rows.Count).End(xlUp).Offset(1).PasteSpecial _
Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False