+ Reply to Thread
Results 1 to 3 of 3

Need VBA code to search file in directory and sub-directory and show result

  1. #1
    Registered User
    Join Date
    08-19-2012
    Location
    toronto, ontario
    MS-Off Ver
    Excel 2007
    Posts
    2

    Need VBA code to search file in directory and sub-directory and show result

    Hi to all,

    I have here a working code that will search and display files matching a certain string in a directory (.e.g. "Structural analysis.pdf") . However, I can't get around to have it search in sub-directories as well. Unfortunately, i'm just a beginner with excel vba, can someone help me ? I would like it to show the path to the files as well if possible. Thanks a lot and appreciate it !!

    JCC

    ************************************

    Please Login or Register  to view this content.
    ********************************************
    Last edited by arlu1201; 08-19-2012 at 05:48 AM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Need VBA code to search file in directory and sub-directory and show result

    JCC,

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    08-19-2012
    Location
    toronto, ontario
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Need VBA code to search file in directory and sub-directory and show result

    Thanks, Arlette.

    Will follow that rule accordingly.

    Best Regards.
    JCC

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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