+ Reply to Thread
Results 1 to 2 of 2

Check all folders for File if Exists

  1. #1
    Forum Contributor
    Join Date
    03-02-2014
    Location
    usa
    MS-Off Ver
    MS 365
    Posts
    596

    Check all folders for File if Exists

    Hello,
    I have a folder called MyMainFolder at:
    C:\Users\ME\MyMainFolder
    This folder contains multiple subfolders (number of subfolders vary each time).
    I need a macro which looks into each subfolder (only into the first tier subfolder) and returns a message “File exists” if the subfolder contains a file named “Searched.xlsm”.
    Could you please advise?
    Thanks

  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: Check all folders for File if Exists

    Perhaps something like this...
    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. [SOLVED] Check if File Exists
    By EssoExplJoe in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-08-2017, 12:56 PM
  2. [SOLVED] Check if file exists and if so save file incremented by 1 e.g. filename(1).xlsm
    By ratdogexcel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-16-2014, 01:15 AM
  3. check if file exists and opening it based on file date
    By JasperD in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-26-2014, 03:45 AM
  4. possible to check for file in multiple folders, then check for values in specific cells?
    By mattheritage in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-04-2014, 08:33 AM
  5. Check if file exists
    By v2jtb in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-25-2010, 09:22 AM
  6. Check to see if a file exists
    By ChrisMattock in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-09-2007, 04:22 AM
  7. [SOLVED] check if file exists
    By Curt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-07-2005, 01:10 PM

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