macro to copy data to master workbook.

S

sharmashanu

Hi All

I have 50 workbook in a folder, say wb1, wb2 ...wb50. Every sheet1 of
each workbook has some data in first say 20 lines.
What iam trying to do is run a macro in a master sheet, that will copy
the data of each sheet1,one below the other and also add a column
telling me the wb it is coming from. Look example below.

data............ wb1.xls
sub wb1.xls
date etc wb1.xls

data............ wb2.xls
sub wb2.xls
date etc wb2.xls

data............ wb3.xls
sub wb3.xls
date etc wb3.xls

Any help with the macro would be of great help. All the workbooks are
in same folder.

thanks

Shanu
 
S

sharmashanu

Hi Mike,

Thanks alot. I had to massage it very little and it worked gr8.

Thanks for the link

Shanu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top