+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Import bulk CSV into 'Sheet2' based on list in 'Sheet1'

  1. #1
    Registered User
    Join Date
    08-08-2008
    Location
    Johannesburg
    MS-Off Ver
    2007
    Posts
    55

    Import bulk CSV into 'Sheet2' based on list in 'Sheet1'

    Hi Guys
    I want to import (over 100) files from a folder (MyFolder) into 'Sheet2'
    But I need to force the import order (Using Dir() messing up the Ascending )

    In 'Sheet1' I'm creating a list of all files from 'MyFolder'
    Macro must then, import the files following the order-list.

    Thanks for your kind help.
    A.C.
    Using Excel 2007.
    Amit Cohen

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Import bulk CSV into 'Sheet2' based on list in 'Sheet1'

    So instead of DIR() you will be using the filename listed in your worksheet instead.

    Please Login or Register  to view this content.

    ....something along those lines.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-08-2008
    Location
    Johannesburg
    MS-Off Ver
    2007
    Posts
    55

    Re: Import bulk CSV into 'Sheet2' based on list in 'Sheet1'

    Hi JBeaucaire
    Thanks for that!
    Please allow me to ask if you can suggest with code?
    ('the rest of your code)
    The code I'm using, is too complicate to manipulate and use here..

    Thanks
    A.C

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Import bulk CSV into 'Sheet2' based on list in 'Sheet1'

    So far you've asked how to evaluate files in a specific order based on a list, I've shown you one way to do that.

    I can't suggest other code based on criteria you haven't provided.

  5. #5
    Registered User
    Join Date
    08-08-2008
    Location
    Johannesburg
    MS-Off Ver
    2007
    Posts
    55

    Re: Import bulk CSV into 'Sheet2' based on list in 'Sheet1'

    Hi JBeaucaire
    Many thanks for your kind help.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Import bulk CSV into 'Sheet2' based on list in 'Sheet1'

    Glad to help.

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated. It is found across from the "time" in each of our posts.)

+ 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