Merge selected worksheet from selected workbook into a new workbook and compile

anshul.vijan

New Member
Joined
Jun 7, 2011
Messages
3
<TABLE class=tborder id=post2744966 cellSpacing=0 cellPadding=6 width="100%" align=center border=0><TBODY><TR vAlign=top><TD class=alt1 id=td_post_2744966 style="BORDER-RIGHT: #ffffff 1px solid">Hi Guys,

This is my first post here. I have a common issue but i am facing trouble customizing it. In my scenario I have many employee workbooks with 'similar' names for example: SDA 1, SDA 2, SDA 3.... They all have the standard three worksheets with names 'Sheet1' ; 'Sheet2'; 'Sheet3' and only 'Sheet1' from all the workbooks have relevant data in it. The header row and column formatting for all the 'Sheet1's in all the workboks is the same and they are located in the same folder.

I have another workbook bythe name of 'Master.xls' which contains the same header row and column as the 'Sheet1' from the above mentioned employee workbooks (SDA 1, SDA 2...).

Can anybody help me with a macro that will combine all rows with data excluding the header row from all the employee workbooks (only Sheet 1) into the Master.xls workbook's Sheet 1 which already has a header row .

I would like it to give me an 'open file' dialog box so i can select which workbooks do i want to include in the process of combine and compile.

So, basically all employee data combined and compiled one under the other wih no header rows.

Thank you so much in advance.
<!-- / message -->
</TD></TR><TR><TD class=alt2 style="BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 0px solid; BORDER-LEFT: #ffffff 1px solid; BORDER-BOTTOM: #ffffff 1px solid">
user_offline.gif
</TD><TD class=alt1 style="BORDER-RIGHT: #ffffff 1px solid; BORDER-TOP: #ffffff 0px solid; BORDER-LEFT: #ffffff 0px solid; BORDER-BOTTOM: #ffffff 1px solid" align=right><!-- controls --></TD></TR></TBODY></TABLE>
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,224,552
Messages
6,179,484
Members
452,917
Latest member
MrsMSalt

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top