Private Sub openFile(fileName As String)
Dim objShell As Variant
Dim objFolder As Variant
Dim objFolderItem As Variant
Dim folder As String
Dim file As String
folder = Strleftback(fileName, "\")
file = Strrightback(fileName, "\")
Set objShell = CreateObject("Shell.Application")
If objShell Is Nothing Then
Print "shell object not created"
Exit Sub
End If
Set objFolder = objShell.NameSpace((folder))
If objFolder Is Nothing Then
Print "no folder: " + folder
Exit Sub
End If
Set objFolderItem = objFolder.ParseName(file)
objFolderItem.InvokeVerbEx("Open")
End Sub