+ Reply to Thread
Results 1 to 2 of 2

VBA code to loop directories, subdirectories and files

  1. #1
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    VBA code to loop directories, subdirectories and files

    give that this thread was just created: https://www.excelforum.com/excel-pro...e-folders.html

    these blocks of code should be used by people here quite a bit, I would assume. Change the inner workings of them to do what you need, as appropriate:

    LOOP FILES IN A SINGLE DIRECTORY
    Please Login or Register  to view this content.
    LOOP FILES IN ALL SUB DIRECTORIES OF A SINGLE DIRECTORY
    Please Login or Register  to view this content.
    LOOP SUB DIRECTORIES IN A SINGLE DIRECTORY (method 1)
    Please Login or Register  to view this content.
    LOOP SUB DIRECTORIES IN A SINGLE DIRECTORY (method 2)
    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    09-07-2020
    Location
    Bruxelles
    MS-Off Ver
    2017
    Posts
    3

    Re: VBA code to loop directories, subdirectories and files

    Hi, I find it interesting thanks for sharing.

+ 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. [SOLVED] Loop is to slow: Need to list files meeting criteria within sub-directories
    By Suicyco in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-01-2019, 06:38 PM
  2. VBA code required to count the number of files in multipe directories.
    By yaash in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-26-2013, 05:43 AM
  3. VBA Macro to Loop and Merge Files in Several Directories
    By sanjeevpandey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-18-2013, 10:53 AM
  4. [SOLVED] Sweeping directories and subdirectories
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2012, 10:40 AM
  5. VBA code to open and execute files from different directories in Command window
    By AlexXYZ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-27-2012, 01:49 PM
  6. VBA code to open and execute files from different directories in Commend window
    By AlexXYZ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-27-2012, 01:52 AM
  7. Scan Through All Files and Subdirectories
    By jasoncw in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-06-2009, 11:58 AM

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