PDA

View Full Version : Default file in FileDialog?



philcoul
09-30-2013, 10:31 AM
I want to use FileDialog(msoFileDialogFilePicker) to allow the user to select a .jpg file but I want there to be a default so myFile.jpg is highlighted and will be selected if the user clicks ok but otherFile.jpg will be shown and available if the user wants to select it. Is this possible?

John Wilson
10-01-2013, 03:14 AM
Phil

I don't think this is possible. You would think .InitialFileName would do this but it should really be call .InitialFOLDERName. If you use it to select the Initial FILE you will not see any other files.

Only workarounds I can offer are make your default file first in alpha order (it still won't be selected OR if nofile is selected (.SelectedItems(1)="") load the default image. Neither very good.