+ Reply to Thread
Results 1 to 5 of 5

Getting External Data from a List of Filenames

  1. #1
    Registered User
    Join Date
    01-17-2006
    Posts
    9

    Getting External Data from a List of Filenames

    I have a list of 4 or 5 filenames (without path/extension) in Column A, and I'm trying to Get External Data on from each one in succession. It works fine when I do a separate Get External Data for each one, but because the filenames will be changing each time the macro is run, I need to have it read the names from Column A and import the external data automatically.

    Please Login or Register  to view this content.
    The path and file format will remain the same each time, but anything I have used to replace the "Connection:=" line has not worked. Any help you can give would be grealty appreciated.
    Last edited by VBA Noob; 07-03-2007 at 01:51 PM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Please read forum rules below and then wrap your code

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Contributor Tarball's Avatar
    Join Date
    04-21-2007
    Location
    Atlanta, GA
    Posts
    166
    You should be able to make this a variable: This assumes that the path will always be your desktop. It also assumes each file has the same parameters. If not you will need to code for all of this. You should also change the Destination too!

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    01-17-2006
    Posts
    9

    enjoy

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor Tarball's Avatar
    Join Date
    04-21-2007
    Location
    Atlanta, GA
    Posts
    166
    Umm...Goose. I'd venture a guess that the moderator meant that you should "EDIT" your original post and add code tags rather than having you add a new response with code tags. This does not add value to the thread that you started.

+ 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