Eric
Try to place this code under macro name
Application.ScreenUpdating = False
And place this code before End sub
Code:
Application.ScreenUpdating = true
Change these 3 line below
Code:
Range("a1").CurrentRegion.Copy
Windows("results.xlsx").Activate
Cells(Rows.Count, "A").End(xlUp).Offset(1, 0).Select
to
Code:
Range("a1").CurrentRegion.Copy
Application.goto Workbooks("results.xlsx").Sheet("YourSheetName").Cells(Rows.Count, "A").End(xlUp).Offset(1, 0).
Range("a1").CurrentRegion.Copy
Application.goto Workbooks("results.xlsx").Sheets("YourSheetName"). Cells(Rows.Count, "A").End(xlUp).Offset(1, 0).
I do not sure that
Code:
Range("a1").CurrentRegion.Copy Workbooks("results.xlsx").Sheets("YourSheetName").Cells(Rows.Count, "A").End(xlUp).Offset(1, 0).
Will work but please try on.
Change thess 2 lines Code
Code:
Range("A2:D400").Select
Selection.ClearContents
to
Code:
Range("A2:D400").ClearContents
N. Yauvasuta