Public Function GetFolder() As String
Set dlg = Application.FileDialog(1)
With dlg
.AllowMultiSelect = False
.Show
End With
If dlg.SelectedItems.Count > 0 Then
GetFolder = dlg.SelectedItems(1)
Else
GetFolder = ""
End If
Set dlg = Nothing
End Function