12978| 29
|
竞赛[高8]最好和最简洁的文件打开对话框功能 |
80金钱
最佳答案Function GetFileName(TitleText As String, Filter As String, FilterText As String, ByVal DialogType As Integer, Optional ByVal FilePath) As String
'参数DialogType说明:
'1.“打开”对话框
'2.“另存为”对话框(此项如执行类型筛选时会出错,所以加了出错处理为 Resume Next)
'3.“文件选取器”对话框
'4.“文件夹选取器”对话框
'例:AA = GetFileName("打开", "*.ini;*.txt", "配置文件", 1, 3)
On Error Resum ...
| ||
| ||
| ||
| ||
|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )
GMT+8, 2024-11-29 20:31 , Processed in 0.108522 second(s), 34 queries .
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.