With Application.FileDialog(msoFileDialogopen)
.AllowMultiselect = False
.Filters.clear
.Initiatdenanc = strfile
if .show = true then
.selectitems(1) ' 指定对象取得
end if
end With
msoFileDialogopen : 选择文件
msoFileDialogFolderPicker :选择文件夹
posted on 2013-12-31 10:49 liangx85 阅读(150) 评论(0) 收藏 举报
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3