+ Reply to Thread
Results 1 to 6 of 6

consolidating excel files into one file not using hard code of folder path

  1. #1
    Registered User
    Join Date
    01-19-2011
    Location
    hyderabad, India
    MS-Off Ver
    Excel 2007
    Posts
    17

    consolidating excel files into one file not using hard code of folder path

    hi,
    i tried to find a macro to consolidate multiple excel files into one file, in the forum but could not find anything which suits my requirements....
    can someone pls help me with this....

    i have approximately 30 excel files in a folder, which i should consolidate into one sheet...
    the path of the folder is not same...it changes from day to day...
    for instance the files which we use today will be saved in today's dated folder i.e., "Day shift 12/19/2010"...
    i should consolidated all the files in the above folder at the end of the day...which i should repeat daily...
    the excel file contains data only in sheet1...
    and rows and columns are not fixed...
    each files contains header... and the header should include only ones in master sheet.


    your help is greatly appreciated...

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

    Re: consolidating excel files into one file not using hard code of folder path

    Is the header consistent between the master file and the individual files? Attach a couple of sample files along with a sample of the master file and it will be easier to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    01-19-2011
    Location
    hyderabad, India
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: consolidating excel files into one file not using hard code of folder path

    hi,

    Yes,
    the Header should be copied from the first sheet from that folder...
    pls find the sample attachments....
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: consolidating excel files into one file not using hard code of folder path

    Try this

    Please Login or Register  to view this content.
    Regards,
    Khaled Elshaer
    www.BIMcentre.com

    Remember To Do the Following....
    1. Thank those who have helped you by clicking the Star below their post.
    2. Mark your post SOLVED if it has been answered satisfactorily:
    • Select Thread Tools (on top of your 1st post)
    • Select Mark this thread as Solved

  5. #5
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: consolidating excel files into one file not using hard code of folder path

    Try this option. All files should be in one folder.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    01-19-2011
    Location
    hyderabad, India
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: consolidating excel files into one file not using hard code of folder path

    hi Guys,

    you guys really made my day....
    thanks from bottom of my heart...
    this forum is really great one......
    get back to you if i need any assistance....

+ 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