Skip to content

Instantly share code, notes, and snippets.

@AuroraNorthernQuarter
Last active April 2, 2021 05:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AuroraNorthernQuarter/ccf834341654075ec22fde88e2534db2 to your computer and use it in GitHub Desktop.
Save AuroraNorthernQuarter/ccf834341654075ec22fde88e2534db2 to your computer and use it in GitHub Desktop.
public function filename_save(ByRef hWndOwner_lng as long,
ByVal initialdir_str as string) as string
const enable_wizhook = 51488399
const disable_wizhook = 0
dim file_str as string
dim result_lng as long
on error goto err_exit
wizhook.key = enable_wizhook 'wizhookを有効に
result_lng = wizhook.getfilename(_
hWndOwner_lng, _
"サンプルシステム", _
"ファイルを保存します", _
"", _
file_str, _
initialdir_str, _
"Microsoft Excel (*.xls)|*.xls", _
0, _
0, _
0, _
0, _
)
wizhook.key = disable_wizhook 'wizhookを無効に
filename_save = file_str
exit function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment