Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5930449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:33:25+00:00 2026-05-22T14:33:25+00:00

Problem: I need to know what files have been placed in a series of

  • 0

Problem:
I need to know what files have been placed in a series of folders. I’d like to catalog which files are there in each folder and be able to do check this whenever I want without having to manually go into each folder. A sort of “syncing” of multiple files from different directories to a centralized catalog so that if I delete a file from a folder then the catalog will reflect the change.

I was hoping Excel could help with this. In short I want to be able to do this:

Filename     FilePath                     Exists

abc_4.23.11  C:\4-23-11\abc_4.23.11.pdf   *True/False*

Details/Assumptions:

The main directory won’t change for a file. So File “abc.pdf” will always be in the same folder.

Let’s assume Folder 1 has the following convention:

Folder Name: mm-dd-yy (i.e 4-30-11)

Contents of Folder 1: A series of other subfolders, we’ll call these using letters so Folder A, Folder B, Folder C…Folder Z.

Inside each subfolder is a pdf file which I need to confirm that it is there.

Let me know if there’s any questions.

Thanks a million!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T14:33:26+00:00Added an answer on May 22, 2026 at 2:33 pm

    This might help to start with:

    Sub ListAllFiles() 
    Dim fs As FileSearch, ws As Worksheet, i As Long 
    Set fs = Application.FileSearch 
    With fs 
        .SearchSubFolders = False ' if you want to search the sub folders also, set to true
        .FileType = msoFileTypeAllFiles 'change this depending on the types of files you would like to filter
        .LookIn = "C:\"  'this will be the search location
        If .Execute > 0 Then 
            Set ws = Worksheets.Add 
            For i = 1 To .FoundFiles.Count 
                ws.Cells(i, 1) = .FoundFiles(i) 
            Next 
        Else 
            MsgBox "No files found" 
        End If 
    End With 
    End Sub
    

    What you would need to do through is create the bit where it checks if the files still exists. Hope this helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know there have been a lot of questions similar to my small problem.
I have solved this problem, I just need to know what to do. I
I have problem with by Xinclude or as an entity included files. I need
I have been making a few apps here and there, and I know my
Well i need some help here i don't know how to solve this problem.
if given a graph problem how do we know whether we need to use
I have the following problem: We need to find the next august. I other
I have the following problem: I need to use XSLFO to generate a 2-column
I know that similar questions have been asked all over the place, but I'm
I have been searching for any documentation on how to exclude files for visual

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.