Add the following to a new module:
And call it using
You pass the directory, the range to extract and the sheet number. If the sheet number is 0 then information for all sheets will be copied, otherwise just the specified sheet (1, 2, 3...)
The range and Sheet number parameters are optional. If you understand that, then fine, they can be ignored and it will default to H7:I7 and all sheets.
This add a new workbook with the consolidated data starting in Row2. Col A will contain the workbook name and Col B onwards the data copied - I'll leave you to copy to your actual workbook and add the Totals. Easy enough to do manually, just a little longer with code but I don;t have a copy of your workbooks to verify the data first.
Bookmarks