Accueil > Community > Automation and VBA > Can Application.FileDialog replace a call to GetSaveFileName (Win API) > Reply To: Can Application.FileDialog replace a call to GetSaveFileName (Win API)

#9365
Bernhard KantzBernhard Kantz
Participant

The FlexPro Application.FileDialog can only be used to select existing files (or folders), i.e. entering a non-existing filename results in an error message.

So it is recommended to use the GetOpenFileName / GetSaveFileName methods in general. If the code should be compatible with both 32 and 64 bit VBA one has to cope with the different signatures and data structures used. You may find some information on this VBA topic under http://www.jkp-ads.com/articles/apideclarations.asp