Hi all,
I've been using Excel for decades but I've only just started using VBA.
I currently have a task that entails copying 600 cells from several sheets in one workbook to a table in another. And then repeating the process on 300 other workbooks
The code is quite simple
Sheets("Section 4a").Activate
Range("F8").Copy
Workbooks("master_table.xlsx").Activate
ActiveSheet.Paste
ActiveCell.Offset(0,1).Activate
It all works fine and the only thing that needs to change is the source sheet (Section 4 in the above example) and the copy range (F8) each time.
I'm wondering if two arrays would be easier/quicker? I've not used arrays before.
Any advice?
I've been using Excel for decades but I've only just started using VBA.
I currently have a task that entails copying 600 cells from several sheets in one workbook to a table in another. And then repeating the process on 300 other workbooks
The code is quite simple
Sheets("Section 4a").Activate
Range("F8").Copy
Workbooks("master_table.xlsx").Activate
ActiveSheet.Paste
ActiveCell.Offset(0,1).Activate
It all works fine and the only thing that needs to change is the source sheet (Section 4 in the above example) and the copy range (F8) each time.
I'm wondering if two arrays would be easier/quicker? I've not used arrays before.
Any advice?
Last edited: