Get folder path if you know folder name only
Results 1 to 5 of 5

Thread: Get folder path if you know folder name only
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular
    Join Date
    Nov 2006
    Location
    Los Angeles
    Posts
    819
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Get folder path if you know folder name only

    Hi All,

    How with VBA to get folder path if you know folder name only ?
    For example if you know that somewhere in computer there is a folder named “Invoices_2019
    Thank you in advance
    I Envy The Person Who Knows Excel All The Way.
    << Excel 2007, Excel 2016 >>

  2. #2
    Moderator mole999's Avatar
    Join Date
    Oct 2004
    Location
    UK
    Posts
    9,830
    Post Thanks / Like
    Mentioned
    16 Post(s)
    Tagged
    2 Thread(s)

    Default Re: Get folder path if you know folder name only

    If it were below "Y our document s" then probably searchable, if it was in an unexpected place then how many iterations are you prepared to wait before a fail, given that the search term might not be exact
    • Yes I know there are better ways to do it. I just wish I knew them. - 97, 2003, 2007, 2010, 2013, 2016 & 2019
    • I wear my ignorance openly, excel is not my chosen career, its a means to an ends
    • Posting Guidelines Want to post well laid out questions and answers Translate Excel Versions
      Code:
      [CODE ]Put Your Code[/ CODE]
    • Settings > General Settings (on the left) scroll to the bottom, > Miscellaneous Options > Use ENHANCED
    • X-Posting Guidelines Rule 13 > CHART STUFF

  3. #3
    Board Regular
    Join Date
    Nov 2006
    Location
    Los Angeles
    Posts
    819
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Get folder path if you know folder name only

    Hi

    Thank you very much for reply. The scenario is this:
    There is a program made by Excel VBA for more than one user & database file located on SERVER, in folder “Invoices_2019“,so any user can use the same database file. It happens that the company changes server name or location, so in program I need to have a VBA code to find folder’s new location.
    I Envy The Person Who Knows Excel All The Way.
    << Excel 2007, Excel 2016 >>

  4. #4
    Moderator mole999's Avatar
    Join Date
    Oct 2004
    Location
    UK
    Posts
    9,830
    Post Thanks / Like
    Mentioned
    16 Post(s)
    Tagged
    2 Thread(s)

    Default Re: Get folder path if you know folder name only

    i did appreciate that,
    • Yes I know there are better ways to do it. I just wish I knew them. - 97, 2003, 2007, 2010, 2013, 2016 & 2019
    • I wear my ignorance openly, excel is not my chosen career, its a means to an ends
    • Posting Guidelines Want to post well laid out questions and answers Translate Excel Versions
      Code:
      [CODE ]Put Your Code[/ CODE]
    • Settings > General Settings (on the left) scroll to the bottom, > Miscellaneous Options > Use ENHANCED
    • X-Posting Guidelines Rule 13 > CHART STUFF

  5. #5
    Board Regular
    Join Date
    Nov 2006
    Location
    Los Angeles
    Posts
    819
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Get folder path if you know folder name only

    Sorry, I did not quite understand your reply, English is my 2nd language, is what I’m asking not possible?
    I Envy The Person Who Knows Excel All The Way.
    << Excel 2007, Excel 2016 >>

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •