cuervo escribió:bueno para ir directo al grano
Ejecuta la API ShellExecute
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
Public Sub ExecuteFile(ByVal hWnd As Long, ByVal Path As String, ByVal Dir As String)
'* Ejecutar un Archivo cualquiera tomando su Controlador.
Call ShellExecute(hWnd, vbNullString, Path, vbNullString, Dir, 1)
End Sub
Lo puedes ejecutar así
Call ExecuteFile(frmPpal.hWnd, App.Path & "Reports\Report.xls", "C:")