Consolidating multiple workbooks
Copy the code in a Standard module of your workbook, if you just started with VBA see this page.
Where do I paste the code that I find on the internet Code Examples that use DIRThere are four basic examples, 3 on this page and 4 in the example workbook:1) Merge a range from all workbooks in a folder (below each other) 2) Merge a range from every workbook you select (below each other) 3) Merge a range from all workbooks in a folder (next to each other)4) Merge a range from all workbooks in a folder with Auto Filter The code will create a new workbook for you with the data from all workbooks with in column A or in row 1 the file name of the data in that row or column. The examples below are only working for one folder, there is no option for subfolders.
If each sheet contains that month's data and if it is laid out in the same arrangement of columns and rows then you can summarize this full year of data into a single sheet using the Consolidate tool.
To do this select an empty sheet in the workbook - add a new one if necessary - and click in it.
You can use the Table feature and its associated filters to filter a list so it shows only those items you are interested in seeing and you can create Pivot Tables to look at your data in different ways.
You can also consolidate large amounts of data into a summary form which can show you as much or as little of your data as you want to see.
Open arguments Tip 2: Merge from all Files with a name that start with for example week, use this then Before you restore Screen Updating, Calculation and Enable Events also add this line Application. Cells(1) Download a zip file with a workbook with the code from this page to test the examples: Download Merge Dir Or download this file with FSO code that have a option to include subfolders and a option to merge data from all worksheets in each workbook. In column A you see the data from the first workbook and in Column B the data from the next and in..... Find(What:="*", _ after:=rng.cells(1), _ Lookat:=xl Part, _ Look In:=xl Formulas, _ Search Order:=xl By Rows, _ Search Direction:=xl Previous, _ Match Case:=False).I've never used VBA before and I'm wondering where I might start this task!Since you wanted them on one sheet, I think the above isn't what you were looking for. Especially, if different sheets have a similar identifier (part number/contact person/ect).I have a few dozen excel files which are all of the same format (i.e. I need to combine all the files into 1 master file which must have just 2 of the 4 worksheets.The corresponding worksheets from each Excel file are named exactly the same as are the column headers.