The Office Developer Edition Tools include an ActiveX control called Common Dialogs. But if you're like me, you would rather not use ActiveX controls in your application and pull in the overhead. All the dialogs available in the ActiveX Common Dialog methods have a comparable API call. The API call covered here is the Open File dialog. Some of the other API calls are in Listing 15.13.
Declare Function GetOpenFileName Lib "comdlg32.dll" Alias _ "GetOpenFileNameA" (pOpenfilename As OPENFILENAME) As Long Declare Function GetSaveFileName Lib "comdlg32.dll" Alias _ "GetSaveFileNameA" (pOpenfilename As OPENFILENAME) As Long ...