Closed Thread
Results 1 to 4 of 4

VBA code to loop through folders and subfolders under date time conditions ?

  1. #1
    Registered User
    Join Date
    01-20-2018
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    10

    VBA code to loop through folders and subfolders under date time conditions ?

    What would the code be to loop through a set of folders and proceed to opening the folder if it matches the month from the previous day and once opened, it loops through all the folders to open the folder which matches the date from yeterday as its file name ?

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: VBA code to loop through folders and subfolders under date time conditions ?

    I probably do not follow well details (I think, I'm not alone - the re is no answer to rathjer basic question for almost a day), but main part will be looping through subfolders. See examples of such macros:


    https://stackoverflow.com/questions/...ders-using-vba

    http://www.excelforum.com/excel-prog...evel-only.html
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    01-20-2018
    Location
    Canada
    MS-Off Ver
    2016
    Posts
    10

    Re: VBA code to loop through folders and subfolders under date time conditions ?

    Hi Kaper,

    I have submitted another question for moderator approval.

    How long does it take ?

  4. #4
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: VBA code to loop through folders and subfolders under date time conditions ?

    hopeful_positive

    We do not operate a moderator approval system. You have posted a second thread here :
    https://www.excelforum.com/excel-pro...ied-names.html

    Please continue in this thread.

    Thread closed.

    DominicB

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Loop through folders and subfolders - Tweaking existing code
    By dluhut in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-29-2016, 09:20 AM
  2. Create folders in all the subfolders and move subfolders
    By Amarjeet Singh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-24-2015, 12:51 PM
  3. [SOLVED] Extend Existing Code to Loop Through All Subfolders in a Folder
    By XOR LX in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-08-2014, 08:47 AM
  4. Macro Code to Encrypt Multiple Excel Files in Folders and Subfolders
    By ali_1989 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-04-2014, 12:53 PM
  5. Loop trough all folders and subfolders and copy data
    By forfiett in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-20-2013, 10:22 AM
  6. [SOLVED] VBA code to add folders and subfolders
    By rhlittau in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-25-2013, 06:57 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