+ Reply to Thread
Results 1 to 3 of 3

Reading in multiple csv files from a list of filenames

  1. #1
    Registered User
    Join Date
    06-06-2009
    Location
    MS USA
    MS-Off Ver
    Excel 2003
    Posts
    1

    Reading in multiple csv files from a list of filenames

    Howdy all,

    My goal is to insert data from a csv file into a new worksheet. While I've got a macro that can manage that part, it will only load one file at the time. Other snippets of code I've run across will load everything in the directory, but I want to restrict it to a list of filenames that I specify in a worksheet (i.e. Sheet 1, A1:A?).

    Any help you could offer would be greatly appreciated.

    Thanks,
    Joe

    Please Login or Register  to view this content.
    Last edited by TexAggie; 06-06-2009 at 07:59 PM.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983

    Re: Reading in multiple csv files from a list of filenames

    TexAggie

    Welcome to Exceltip forum

    Please take a couple of minutes and read ALL theForum Rules then wrap your VBA code (Rule 3)
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983

    Re: Reading in multiple csv files from a list of filenames

    Macro modified to loop through cells in column A
    Assumes entry in each cell is file name only
    Assumes no blank cells between A1 and last used cell in column A
    Assumes only file names listed in column A

    Please Login or Register  to view this content.

+ 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