You will have noticed that so far your program does not open the file. Explorer passes the file path to your program when it starts, and you can access this through the Command$ function.
Private Sub Form_Load()
'// check command line argument:
If Command$ <> Empty Then
'// we have a file to open
OpenFile Command$ '// call your
openfile procedure
End If
End Sub
Comments