Results 1 to 2 of 2

Thread: Default file in FileDialog?

  1. #1
    VBAX Newbie
    Joined
    Sep 2013
    Posts
    3
    Location

    Default file in FileDialog?

    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?


  2. #2
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,096
    Location
    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.
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •