A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
After you run the following code, the variable named FolderName will contain the full path of the selected folder (or the empty string "" if the user Cancels the dialog box)...
Dim FolderName As String
With Application.FileDialog(msoFileDialogFolderPicker)
.AllowMultiSelect = False
.Show
On Error Resume Next
FolderName = .SelectedItems(1)
Err.Clear
On Error GoTo 0
End With
NOTE: Please mark the message or messages (yes, you can mark more than one) that answer your question as the "Answer" so that others will know your question has been resolved.