Sub
checkFileOpenViaScriptingRuntime()
Dim
fso
As
Object
Dim
sPath
As
String
, sFile
As
String
, sFullPath
As
String
sFile =
"Mappe1.xlsx"
sPath = "c:\Ordner1\Ordner2\"
sFullPath = sPath &
"~$"
& sFile
With
CreateObject(
"Scripting.FileSystemObject"
)
MsgBox .FileExists(sFullPath)
End
With
End
Sub