+ Reply to Thread
Results 1 to 21 of 21

to consolidate four workbooks into single workbook

  1. #1
    Registered User
    Join Date
    12-05-2008
    Location
    india
    Posts
    12

    to consolidate four workbooks into single workbook

    epmo1.xls

    epmo2.xls

    epmo3.xls

    epmo4.xls

    Hi,

    Can you provide macro to collate four workbooks into single workbook.
    Sheets in workbooks also to be copied.

    Many thanks in advance.

    R Sairaj

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: to consolidate four workbooks into single workbook

    Do you want to move each sheet to one workbook, or combine the sheet contents?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    12-05-2008
    Location
    india
    Posts
    12

    Re: to consolidate four workbooks into single workbook

    Quote Originally Posted by royUK View Post
    Do you want to move each sheet to one workbook, or combine the sheet contents?
    Hi,

    Many thanks for reply.
    Can you add all four workbook contents into a new workbook.

    Regards,
    R Sairaj

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: to consolidate four workbooks into single workbook

    I sporadically checked 2 of your workbooks that you have linked above. They individually have 3 sheets. So what i understand is that the sheet 1 of the 4 workbooks should be combined into the sheet 1 of the new workbook. Sheet 2 of the 4 workbooks should be combined into the sheet 2 of the new workbook, and so on. Am i right?

  5. #5
    Registered User
    Join Date
    12-05-2008
    Location
    india
    Posts
    12

    Re: to consolidate four workbooks into single workbook

    Quote Originally Posted by arlu1201 View Post
    I sporadically checked 2 of your workbooks that you have linked above. They individually have 3 sheets. So what i understand is that the sheet 1 of the 4 workbooks should be combined into the sheet 1 of the new workbook. Sheet 2 of the 4 workbooks should be combined into the sheet 2 of the new workbook, and so on. Am i right?
    Hi,

    Many thanks for reply.
    Yes thats right.

    Regards,

    R Sairaj

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: to consolidate four workbooks into single workbook

    Will all the files be open?

    If not are they all in one folder?

  7. #7
    Registered User
    Join Date
    12-05-2008
    Location
    india
    Posts
    12

    Re: to consolidate four workbooks into single workbook

    Quote Originally Posted by royUK View Post
    Will all the files be open?

    If not are they all in one folder?
    Hi,

    Many thanks for reply.
    Yes they all are in folder.

    Regards,
    R Sairaj

  8. #8
    Registered User
    Join Date
    12-05-2008
    Location
    india
    Posts
    12

    Re: to consolidate four workbooks into single workbook

    Hi,

    Many thanks for reply.
    Yes all files are in one folder.

    Regards,
    R Sairaj

  9. #9
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: to consolidate four workbooks into single workbook

    Here's some code that you can adapt
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    12-05-2008
    Location
    india
    Posts
    12

    Re: to consolidate four workbooks into single workbook

    Quote Originally Posted by royUK View Post
    Here's some code that you can adapt
    Please Login or Register  to view this content.
    Hi,

    Many thanks for code. Thats great.
    I tried to run macro in a new workbook and run macro using Alt+F8 keys.
    Data is not appending into a workbook. Can you advice.

    Regards,

    R Sairaj

  11. #11
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: to consolidate four workbooks into single workbook

    Don't quote whole posts unnecessarily!


    I can't advise without seeing where you've put the code, etc. Attach the workbook with the code

  12. #12
    Registered User
    Join Date
    12-05-2008
    Location
    india
    Posts
    12

    Re: to consolidate four workbooks into single workbook

    Quote Originally Posted by royUK View Post
    Don't quote whole posts unnecessarily!


    I can't advise without seeing where you've put the code, etc. Attach the workbook with the code
    Hi,

    Sorry for this. Many thanks for reply.
    Please find attachment file epmo1.xls. I updated code in module1.

    Regards,

    R Sairaj
    Attached Files Attached Files

  13. #13
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: to consolidate four workbooks into single workbook

    What part of not quoting whole posts was unclear?

  14. #14
    Registered User
    Join Date
    12-05-2008
    Location
    india
    Posts
    12

    Re: to consolidate four workbooks into single workbook

    Quote Originally Posted by royUK View Post
    What part of not quoting whole posts was unclear?
    Hi,

    I pasted macro in epmo1.xls. Four excel files epmo1, empo2, empo3, empo4 are kept in same folder. I executed macro - combinedata and data are not appending into epmo1.xls.
    Do I need to call the macro combinedata in sheet1 code by inputting seven parameters.

    Regards,
    R Sairaj

  15. #15
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: to consolidate four workbooks into single workbook

    Obviously all of it!

    I'm not even looking at your problem whilst you keep quoting posts

  16. #16
    Registered User
    Join Date
    12-05-2008
    Location
    india
    Posts
    12

    Re: to consolidate four workbooks into single workbook

    Quote Originally Posted by royUK View Post
    Obviously all of it!

    I'm not even looking at your problem whilst you keep quoting posts
    Hi,

    Many thanks for reply.
    Can you suggest steps to execute macro.
    I shall follow it.

    Regards,
    R Sairaj

  17. #17
    Registered User
    Join Date
    12-05-2008
    Location
    india
    Posts
    12

    Re: to consolidate four workbooks into single workbook

    Hi,

    Many thanks for reply.
    Can you suggest steps to execute this macro.

    Regards,

    R Sairaj

  18. #18
    Registered User
    Join Date
    12-05-2008
    Location
    india
    Posts
    12

    Re: to consolidate four workbooks into single workbook

    Hi,

    Waiting for your valuable advice.

    Regards,

    R Sairaj

  19. #19
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: to consolidate four workbooks into single workbook

    hi rai
    please see the file attached!
    Attached Files Attached Files
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  20. #20
    Registered User
    Join Date
    12-05-2008
    Location
    india
    Posts
    12

    Re: to consolidate four workbooks into single workbook

    Hi,

    Many thanks for reply.
    Can you advice procedure to execute macro.

    Regards,

    R Sairaj

  21. #21
    Registered User
    Join Date
    08-27-2013
    Location
    mexico df
    MS-Off Ver
    excel for mac 2011
    Posts
    16

    Re: to consolidate four workbooks into single workbook

    I tried using this macro in a mac and it doesnt work, im trying to consolidate all worksheets of all workbooks in the same file but the code stops working when it reaches format... all the files are .csv do you know whats going on?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1