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
'Api直接看Api浏览器就可以调出来了
Sub A2()
ShellExecute Application.hwnd, "Open", "路径", "", "", vbNormalFocus
End Sub
Sub A1()
'Shell函数
Shell "Explorer " & "路径", vbNormalFocus
End Sub
追问我说的是打开电子表格,而且是VBA
追答这不就是Vba了咯,VBA也不过是引用VB的
本回答被提问者采纳