you need to add this command to the on load sub of your form

If Command$ = "" Then
'if no file are loaded
Else
'load up - file
End If