+ Reply to Thread
Results 1 to 2 of 2

Search for a subfolder

  1. #1
    Registered User
    Join Date
    07-01-2013
    Location
    Western Springs, IL
    MS-Off Ver
    Excel 2016
    Posts
    18

    Search for a subfolder

    Hello,

    I need to search multiple folders to find a specific subfolder with VBA in Excel 2016. Is this possible? The code I use now as you can see below assumes the subfolder is in the 2018 Dec folder but I need to search the 2017 Dec, 2016 Dec and 2015 Dec folders now to see if the subfolder already exists. Any help is greatly appreciated. Thank you.


    Please Login or Register  to view this content.

  2. #2
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: Search for a subfolder

    Hi ajam

    This will loop through all folders like 2015 Dec, 2016 Dec, 2017 Dec, 2018 Dec etc in a specified path
    and search for your specific subfolder....
    Please Login or Register  to view this content.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

+ 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. Replies: 14
    Last Post: 09-18-2016, 08:13 AM
  2. Replies: 0
    Last Post: 09-18-2015, 03:20 AM
  3. [SOLVED] SubFolder search but for specific file type
    By jquintana83 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-26-2014, 10:05 AM
  4. VBA code needed to move from Outlook 2010 subfolder to Symantec Vault subfolder
    By Marijke in forum Outlook Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2014, 12:14 PM
  5. [SOLVED] Mkdir command button to add subfolder/subfolder
    By frefry4 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-17-2013, 06:28 PM
  6. Moving an e-mail from a subfolder in Mailbox to the equivalent subfolder in an archive PST
    By johncassell in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 07-09-2012, 11:31 AM
  7. Subfolder Search
    By kreshnr in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-25-2009, 09:49 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