Merge multiple *.xls files into one *.xls file in separate sheets

  • Hi


    Can u help any body in merging the multiple *.xls files into one single *.xls file but each *.xls file com in separate worksheet.


    Say i have 30 xls files in datewise i.e., 01.10.10, 02.10.10, 03.10.10 so on....


    I want to merge all the above 30 xls files in single file master workbook - in that master workbook file the above 30 xls should come in separate work sheets.


    Thank you

  • Re: Merge multiple *.xls files into one *.xls file in separate sheets


    Hi


    That solution is not perfect to me. Because i want all files in a single work book with separate sheets like sheet1, sheet2.....sheet 30 ... so...on..


    thanks

  • Re: Merge multiple *.xls files into one *.xls file in separate sheets


    Why dismiss it out of hand? Very little rework would get you...

  • Re: Merge multiple *.xls files into one *.xls file in separate sheets


    Hi


    Thanks. Basically i'm novice in vb code etc., The code is running. master file creating with 30 work sheets but there is no data..........all are blank sheets. Why?


    Thanks again..

  • Re: Merge multiple *.xls files into one *.xls file in separate sheets


    And i'm doing the following. excel>tools>macro>vb editor>copied the code and run.... is it correct...?

  • Re: Merge multiple *.xls files into one *.xls file in separate sheets


    If it runs, then you're copying it in correctly.

    Perhaps the data is contained on different sheets? The code works, I've tested it myself (Admittedly on Office 2007, but that shouldn't make a difference).

    The procedure will only copy from the active sheet. If a file was saved with 'Sheet3' active and it's empty, nothing will be copied...

  • Re: Merge multiple *.xls files into one *.xls file in separate sheets


    Hi


    The data contain in separate files. When running the code sheet1 file created. In that 32 worksheets is created. But no data - all are blank work sheets. What to do? kindly suggest?


    Thank you.

  • Re: Merge multiple *.xls files into one *.xls file in separate sheets


    I'm sorry - you've basically just repeated your last post... have you looked at the source data? Is there anything there?

  • Re: Merge multiple *.xls files into one *.xls file in separate sheets


    Sorry - but it imports with no problems here... at a loss what to suggest unless you can be more specific about what's happening at your end.

  • Re: Merge multiple *.xls files into one *.xls file in separate sheets


    great help...
    using this code, how do i name every worksheet with the source workbook name instead sheet1, sheett2, ...
    thanks


    Quote from cytop;525897

    Why dismiss it out of hand? Very little rework would get you...

  • Re: Merge multiple *.xls files into one *.xls file in separate sheets


    I can run this code successfully but there is a bug.. it is only taking 50 rows from each file.. suggest what to do next

  • Re: Merge multiple *.xls files into one *.xls file in separate sheets


    Suggest you start your own thread, explain the issue fully and upload a sample workbook that displays the issue.


    If you think this thread can help clarify your issue you can include a link to it by copying the URL from the address bar of your browser and pasting into your message.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!