+ Reply to Thread
Results 1 to 2 of 2

Loop Through all files in folder only finding first file

  1. #1
    Registered User
    Join Date
    06-03-2014
    MS-Off Ver
    2013
    Posts
    10

    Loop Through all files in folder only finding first file

    Hello Everyone,

    I've got the below code that is looping through a series of XLS files in a specified location and saving them as a CSV file in a different location. The code works fine for the first file, but the loop doesn't find the next file. i have no idea what i'm missing right now....

    There are several files in the pickup location, all '.xls', but only the first one, alphabetically, is being pulled into the Dir()

    Please Login or Register  to view this content.
    Any help please?

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Loop Through all files in folder only finding first file

    I don't know what is the problem in your code.. I think you missed some parts for the code
    Can you provide us the link for this code

    Generally try the following code to do the task
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Choose a Folder and Loop a Sub for all files in the chosen folder
    By smartbuyer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2016, 10:57 PM
  2. [SOLVED] Choose a folder and loop through all files in the chosen folder
    By smartbuyer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-10-2016, 11:19 PM
  3. [SOLVED] Loop Through Folder, Create Emails with Sub Folder Names in Subject, Attach files in sub
    By Rschwar23 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-30-2015, 10:06 AM
  4. Replies: 12
    Last Post: 03-09-2015, 05:52 PM
  5. Replies: 3
    Last Post: 01-05-2014, 05:50 AM
  6. Replies: 1
    Last Post: 11-01-2013, 03:22 PM
  7. VBA Loop for a folder of all the files, Loop all the worksheet in each workbook
    By nanjingwoodworking in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-07-2013, 07:20 PM

Tags for this Thread

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