+ Reply to Thread
Results 1 to 5 of 5

[VBA] Select multiple files, import one by one

  1. #1
    Forum Contributor
    Join Date
    03-24-2009
    Location
    Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    382

    [VBA] Select multiple files, import one by one

    Hi everyone,

    I am struggling with some VBA code I got from someone else along the road. Currently, the file select box only allows one file per macro execution, but I would like to have the select box allowing to select multiple files (all same file format .xls, all in same folder) and then import the files one by one, basically running the vba code one by one.

    Please Login or Register  to view this content.

    Anyone who could point me there? I googled and searched the forum but dont get very far...

    Thanks,
    A2k

  2. #2
    Forum Contributor
    Join Date
    03-24-2009
    Location
    Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    382

    Re: [VBA] Select multiple files, import one by one

    Really not getting anywhere. My code so far gives me an application error when trying to address the cells via with activeworkbook. Any ideas?

    Please Login or Register  to view this content.
    Basically what I am trying to do is to import the files one by one and have the data in one column after another.

    Thanks,
    A2k

  3. #3
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: [VBA] Select multiple files, import one by one

    hi Armitage2k, sort of that:

    Please Login or Register  to view this content.

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: [VBA] Select multiple files, import one by one

    if you want import in sheets
    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  5. #5
    Forum Contributor
    Join Date
    03-24-2009
    Location
    Vietnam
    MS-Off Ver
    Excel 2010
    Posts
    382

    Re: [VBA] Select multiple files, import one by one

    Excellent, thank you all very much!
    A2k

+ 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