möchte gerne eine Windowsanwendung von Excel aus starten, so z.Bsp. eine PDF Dokument über Adobe Reader, ohne Excel zu schließen. Welche Anweisung ist da möglich ?
maxpayne
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
Sub Oeffnen(Pfad As String)
ShellExecute Application.hwnd, "Open", Pfad, _
vbNullString, vbNullString, vbNormalFocus
End Sub