Code:
With Sheets("uniques")
Dim sh As Worksheet
For Each sh In ThisWorkbook.Sheets
If sh.Name Like "*-*" Then
sh.Range("B10", sh.Cells(Rows.Count, 2).End(xlUp).Offset(-3)).Copy Sheets("uniques").Cells(Rows.Count, 1).End(xlUp)(2)
End If
Next
End With
My sheets are seasons in the format 2019-20
This has worked fine but now give run time error 1004
Code:
sh.Range("B10", sh.Cells(Rows.Count, 2).End(xlUp).Offset(-3)).Copy Sheets("uniques").Cells(Rows.Count, 1).End(xlUp)(2)
Can someone break this row down. I have sheets with no data I think this could be the problem.
Cheers