I have the following code used to select a "save to" location.
Set fDlg = Application.FileDialog(msoFileDialogFolderPicker)
With fDlg
.AllowMultiSelect = False
.Title = "Select folder to save export to."
.Filters.Clear
If .Show = False Then
For Each varFile In .SelectedItems
strFolderName = varFile
Next
End If
End With
When I step thru this code and select a folder, it doesn't show a value in varFile or strFolderName.
If anyone has any insight into why this is happening, I would be thankful.
Phil Edwards
Set fDlg = Application.FileDialog(msoFileDialogFolderPicker)
With fDlg
.AllowMultiSelect = False
.Title = "Select folder to save export to."
.Filters.Clear
If .Show = False Then
For Each varFile In .SelectedItems
strFolderName = varFile
Next
End If
End With
When I step thru this code and select a folder, it doesn't show a value in varFile or strFolderName.
If anyone has any insight into why this is happening, I would be thankful.
Phil Edwards