+ Reply to Thread
Results 1 to 5 of 5

Macro that can search folder structure

  1. #1
    Forum Contributor
    Join Date
    04-18-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    161

    Macro that can search folder structure

    I may be asking for something Excel cannot do but i thought i would ask. I would like a macro that can take a folder name that i input into a cell and do a search for it starting at N:\ and when it finds it , it displays the complete folder structure in a seperate cell . i attached a file whith instructions that i think better explains what i am looking for it to do.

    Thanks,
    Attached Files Attached Files
    Last edited by Traymond; 01-08-2011 at 07:16 PM.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Macro that can search folder structure

    See if the attached file works for you.

    Does that help?

    Note: I replaced the attachment with version 1a, which includes a returned value of "Not found" if the search target does not exist.
    Attached Files Attached Files
    Last edited by Ron Coderre; 01-08-2011 at 10:12 PM.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Macro that can search folder structure

    Hi,

    Try the following macro

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Contributor
    Join Date
    04-18-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    161

    Re: Macro that can search folder structure

    Ron,
    That is Perfect !!! works just like i described. Thanks so much.... this is going to help me so much.

  5. #5
    Forum Contributor
    Join Date
    04-18-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    161

    Re: Macro that can search folder structure

    Richard,

    I'lll take a look at yours as well. i will for sure save it for future reference. Thanks for the help

+ 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