Consolidating multiple excel workbooks

by  |  27-May-2015 23:35

consolidating multiple excel workbooks-53consolidating multiple excel workbooks-59consolidating multiple excel workbooks-34

Click here to learn more about VBA Classes & join us.

At, I have one goal, "to make you awesome in excel and charting".

We then switch back to our main workbook and select the sheet where we want to paste the data, I have assigned this to the variable called “str Where To Copy”.

Open str File Name, Update Links:=False, Read Only:=True Set data WB = Active Workbook Range(str Copy Range). We open the data workbook by using the Application. Next we select the data that has been assigned to the copy range and copy to the clipboard.

Inside our loop are the 4 variables which are assigned the 1) File name, 2) Copy Range, 3) Where To Copy and 4) Which Column contains the starting cell to paste data. Once we have our first data workbook open, we assign this to the data WB variable so that we can easily switch between the two workbooks and close them when the operation has been completed.

Community Discussion