Get folder path if you know folder name only

Sahak

Well-known Member
Joined
Nov 10, 2006
Messages
1,012
Office Version
  1. 2016
  2. 2013
  3. 2011
  4. 2010
  5. 2007
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
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
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
 
Upvote 0
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.
 
Upvote 0
Sorry, I did not quite understand your reply, English is my 2nd language, is what I’m asking not possible?
 
Upvote 0
Hi,

I don't have a code, I ask for it from you guys. I need a code to find where is the new location of the folder “Invoices_2019“ on the network. Let say before it was on '\\ABCData\", and now it changed & it is in "\\ABCMainData\", so I'm looking for a VBA code to get "\\ABCMainData\".
Thank you in advance
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,190
Members
452,616
Latest member
intern444

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top