What's wrong with the blue line ?
Thanks in advance.
Thanks in advance.
Rich (BB code):
Sub macro1()
Dim Lastr1 As Integer, Lastr2 As Integer
Lastr1 = Sheets("Woman").Cells(Rows.Count, 1).End(xlUp).Row
Lastr2 = Sheets("Men").Cells(Rows.Count, 1).End(xlUp).Row
With Sheets("Sheet3")
Sheets("Woman").Range(Cells(2, 1), Cells(Lastr1, 1)).Copy .Cells(2, 1)
Sheets("Men").Range(Cells(2, 1), Cells(Lastr2, 1)).Copy .Cells(Lastr1 + 1, 1) 'ERROR
End With
End Sub