Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Const SW_SHOWNORMAL = 1
Private Sub Command1_Click()
ShellExecute 0, "open", "d:\", 0, 0, SW_SHOWNORMAL
End Sub
示例打开D盘 供你修改
用excel打开一个文件夹 我帮你实现
getopenfilename?
h何地