Hello all, i want to find out if there is a better way to copy from sheets1 through 9 and paste to sheet "master" one sheet below the other. here is the code i have cobbled together which does work but maybe there is a more efficient way?
Your help will be appreciated, and I will have learned something?
best regards, Andy
Code:
' select the range to copy and paste to "master"
Sheets("Sheet9").Select
Rows("3:68").Select
Selection.Copy
Sheets("Master").Select
Rows("1:1").Select
Selection.Insert Shift:=xlDown
Sheets("Sheet8").Select
Rows("3:68").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Master").Select
Rows("1:1").Select
Selection.Insert Shift:=xlDown
Sheets("Sheet7").Select
Rows("3:68").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Master").Select
Rows("1:1").Select
Selection.Insert Shift:=xlDown
Sheets("Sheet6").Select
Rows("3:68").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Master").Select
Rows("1:1").Select
Selection.Insert Shift:=xlDown
Sheets("Sheet5").Select
Rows("3:68").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Master").Select
Rows("1:1").Select
Selection.Insert Shift:=xlDown
Sheets("Sheet4").Select
Rows("3:68").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Master").Select
Rows("1:1").Select
Selection.Insert Shift:=xlDown
Sheets("Sheet3").Select
Rows("3:68").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Master").Select
Rows("1:1").Select
Selection.Insert Shift:=xlDown
ActiveWindow.SmallScroll Down:=-9
Sheets("Sheet2").Select
Rows("3:68").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Master").Select
Rows("1:1").Select
Selection.Insert Shift:=xlDown
Sheets("Sheet1").Select
Rows("15:70").Select
Application.CutCopyMode = False
Selection.Copy
Sheets("Master").Select
Rows("1:1").Select
Selection.Insert Shift:=xlDown
Columns("A:F").Select
Application.CutCopyMode = False
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
ActiveWorkbook.Worksheets("Master").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("Master").Sort.SortFields.Add2 Key:=Range( _
"A2:A3734"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
xlSortNormal
With ActiveWorkbook.Worksheets("Master").Sort
.SetRange Range("A1:L3734")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Your help will be appreciated, and I will have learned something?
best regards, Andy
Last edited by a moderator: