Fehlerabfangen beim PP-Öffnen
30.11.2005 13:46:48
Nique
ich öffne mit folgenden Befehlen eine bestimmte PowerPoint-Präsentation. Wie fange ich nun den Fehler ab, wenn diese Präsentation nicht vorhanden ist?
Kann mit da jemand weiterhelfen?
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 Sub CommandButton2_Click()
Dim Titel As String
Titel = ListBox1.List(ListBox1.ListIndex, 0)
Call ShellExecute(0, "", (ActiveWorkbook.Path & "\Präsentationen\" & Titel & ".ppt"), "", "", 0)
End Sub
Danke.
Nique