P
Paul C
I am using the following section of code to have a user select a location to
save a newly created file (the name is already determined - newname)
With Application.FileDialog(msoFileDialogFolderPicker)
.Show
newloc = .SelectedItems(1)
End With
ActiveWorkbook.SaveAs Filename:=CStr(newloc) & "\" & newname
Everything works fine, but the FolderPicker only displays folders and no
contents.
While this is not critical, I would like the user to see the folder contents
for reference and it is just bugging me that I can't do this.
I know that changing to FilePicker will do this, but then the user is
picking a name and not using the predetermined newname (which I would
prefer).
Is there a way to have the FolderPicker display the folder content?
or
If using FilePicker how can you force the predetermined name to be used?
save a newly created file (the name is already determined - newname)
With Application.FileDialog(msoFileDialogFolderPicker)
.Show
newloc = .SelectedItems(1)
End With
ActiveWorkbook.SaveAs Filename:=CStr(newloc) & "\" & newname
Everything works fine, but the FolderPicker only displays folders and no
contents.
While this is not critical, I would like the user to see the folder contents
for reference and it is just bugging me that I can't do this.
I know that changing to FilePicker will do this, but then the user is
picking a name and not using the predetermined newname (which I would
prefer).
Is there a way to have the FolderPicker display the folder content?
or
If using FilePicker how can you force the predetermined name to be used?