Home > Community > Automation and VBA > Can Application.FileDialog replace a call to GetSaveFileName (Win API) > Antwort auf: Can Application.FileDialog replace a call to GetSaveFileName (Win API)

#9365
Bernhard KantzBernhard Kantz
Teilnehmer

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

Weisang GmbH

Sophie-Krämer-Straße 13
D-66386 St. Ingbert
Germany

Tel. +49 6894 929600
Fax. +49 6894 92960 26

zum Unternehmen