Merge Worksheets Code
Merge Worksheets Code
Cell A2 of Sheet2 Cell B2 of Sheet2 Cell C2 of Sheet2 Cell D2 of Sheet2 Cell E2 of Sheet2
Cell A2 of Sheet3 Cell B2 of Sheet3 Cell C2 of Sheet3 Cell D2 of Sheet3 Cell E2 of Sheet3
Cell A2 of Sheet4 Cell B2 of Sheet4 Cell C2 of Sheet4 Cell D2 of Sheet4 Cell E2 of Sheet4
Cell F2 of Sheet1 Cell G2 of Sheet1 Sheet1
Cell F2 of Sheet2 Cell G2 of Sheet2 Sheet2
Cell F2 of Sheet3 Cell G2 of Sheet3 Sheet3
Cell F2 of Sheet4 Cell G2 of Sheet4 Sheet4
Consolidate Data from Multiple Worksheets into a Summary Worksheet in Excel
http://www.rondebruin.nl/copy2.htm
In this workbook you can test the code from the page above
Because I also want to exclude the Information worksheet I use
If IsError(Application.Match(sh.Name, _
Array(DestSh.Name, "Information"), 0)) Then
Instead of: If sh.Name <> DestSh.Name Then that you see in the code on my website.
You can add more sheet to the Array if you want.
You can try each example with one of the buttons below or use Alt F8 to
select one of the macros in the macro list and press Run.
Copy column A from each sheet after the last column with data
When you run one of the examples it will first delete the summary worksheet
named RDBMergeSheet if it exists and then adds a new one to the workbook.
This ensures that the data is always up to date after you run the code.