sirmacademy
New Member
- Joined
- Aug 12, 2018
- Messages
- 17
Hello, I need to write the VBA code make this easy. Range of A1:AN81 will put into or copy at the Range A+81. They are in the same folder. Thanks in advance.
Please see the code below.
Sub CopyPasteMultipleWorkbooks()
Workbooks.Open Filename:= _
"G:\My Drive\2018-2019 SF1\Grade 7\SF1_2018_Grade 7 (Year I) - ACACIA.xls"
Range("A1:AN81").Select
Application.CutCopyMode = False
Selection.Copy
Windows("Consolidate Practice.xlsm").Activate
Range("A1").Select
ActiveSheet.Paste
Workbooks.Open Filename:= _
"G:\My Drive\2018-2019 SF1\Grade 7\SF1_2018_Grade 7 (Year I) - ALMOND.xls"
Range("A1:AN81").Select
Application.CutCopyMode = False
Selection.Copy
Windows("Consolidate Practice.xlsm").Activate
Range("A" & 81).Select
ActiveSheet.Paste
Workbooks.Open Filename:= _
"G:\My Drive\2018-2019 SF1\Grade 7\SF1_2018_Grade 7 (Year I) - BREADFRUIT.xls"
Range("A1:AN81").Select
Application.CutCopyMode = False
Selection.Copy
Windows("Consolidate Practice.xlsm").Activate
Range("A" & 162).Select
ActiveSheet.Paste
End Sub
Please see the code below.
Sub CopyPasteMultipleWorkbooks()
Workbooks.Open Filename:= _
"G:\My Drive\2018-2019 SF1\Grade 7\SF1_2018_Grade 7 (Year I) - ACACIA.xls"
Range("A1:AN81").Select
Application.CutCopyMode = False
Selection.Copy
Windows("Consolidate Practice.xlsm").Activate
Range("A1").Select
ActiveSheet.Paste
Workbooks.Open Filename:= _
"G:\My Drive\2018-2019 SF1\Grade 7\SF1_2018_Grade 7 (Year I) - ALMOND.xls"
Range("A1:AN81").Select
Application.CutCopyMode = False
Selection.Copy
Windows("Consolidate Practice.xlsm").Activate
Range("A" & 81).Select
ActiveSheet.Paste
Workbooks.Open Filename:= _
"G:\My Drive\2018-2019 SF1\Grade 7\SF1_2018_Grade 7 (Year I) - BREADFRUIT.xls"
Range("A1:AN81").Select
Application.CutCopyMode = False
Selection.Copy
Windows("Consolidate Practice.xlsm").Activate
Range("A" & 162).Select
ActiveSheet.Paste
End Sub