ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Get Folder Path (https://www.excelbanter.com/excel-programming/306335-get-folder-path.html)

RNM[_2_]

Get Folder Path
 
Is there a way to get the user to select a folder, via a dialog box.
know how to get the file open dialog, but I just want the folder.

Thanks

--
Message posted from http://www.ExcelForum.com


Dave Peterson[_3_]

Get Folder Path
 
In xl2002+, you can use the built in:
application.filedialog
(there's a nice example in help).

In earlier versions, you could use the code at John Walkenbach's site:
http://j-walk.com/ss/excel/tips/tip29.htm

(actually, you could use that in xl2002+, too.)



"RNM <" wrote:

Is there a way to get the user to select a folder, via a dialog box. I
know how to get the file open dialog, but I just want the folder.

Thanks,

---
Message posted from http://www.ExcelForum.com/


--

Dave Peterson



All times are GMT +1. The time now is 04:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com