Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a workbook with 5 sheets (i.e., tabs) that I need to consolidate into
a 6th sheet within the same workbook. Obviously, the column headings are the same on each sheet. I am trying to write a macro that will copy the data from each of the 5 sheets (columns A thru BD, and always starting with row 7) and append the data in the 6th sheet. The problem Im encountering is that the number of rows of data on each of the 5 sheets is different and can vary over time. So the macro needs to first determine how many rows of data exist on a given sheet and then copy that range to the 6th sheet. Example: If Sheet1 has data in rows 7 thru 19, and Sheet2 has data in rows 7 thru 23, then the macro would copy rows 7 thru 19 in Sheet1 to rows rows 7 thru 19 in Sheet6. Next, it would copy rows 7 thru 23 in Sheet2 to rows 20 thru 37 in Sheet6, etc. Being new to VBA, I would greatly appreciate any help in writing the aforementioned macro. Thanks in advance for any assistance. Bob |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Why do the tabs disappear (workbook has multiple sheets) | Excel Discussion (Misc queries) | |||
Consolidating sheets | Excel Discussion (Misc queries) | |||
Consolidating all sheets | Excel Discussion (Misc queries) | |||
Copy tabs(sheets) from workbook without link to original source | Excel Discussion (Misc queries) | |||
Copy tabs(sheets) from workbook without link to original source | Links and Linking in Excel |