回复 5楼 apull
感谢,我想用3楼提供的不用控件方法。
'打开对话框
Set wShell = CreateObject("WScript.Shell")
Set oExec = wShell.Exec("mshta.exe ""about:<input type=file id=FILE><script>FILE.click();new ActiveXObject('Scripting.FileSystemObject').GetStandardStream(1).WriteLine(FILE.value);close();resizeTo(0,0);</script>""")
'输出选择的,文件的路径
File_Selected = oExec.StdOut.ReadLine
MsgBox File_Selected
只能选择一个文件