ich öffne per makro aus einer excel-datei eine zweite excel-datei mit folgendem makro.
Dim myFile As String, File As String, File2 As String, FILEPATH As String, PATH As String
File = ActiveSheet.Name & ".xls" 'name of source file
File2 = ActiveSheet.Name 'name of source sheet
Application.StatusBar = "accessing data of " & File & "...."
MsgBox "accessing data " & File & "..." & vbCr & vbCr
PATH = ThisWorkbook.PATH & "\" & File
myFile = PATH
Destination = ActiveWorkbook.Name
...
ich möchte aber noch ein überprüfung haben, bzw. eine meldung bei nicht vorhandener zweiter excel-datei.
kann mir bitte jemand helfen. stehe irgendwie auf dem schlauch...
danke