"The path of the file is passed through a FileOpenDialiog in vb.net" ?
May be I don't exactly understand what you will acomplish but:
If it is a portable solution I save the parameters which will change from instance to instance
in separate textfiles which are loaded by vb.net. Eg you can save the path/name of the
Excelfile in a text file and open it by VB.net save it in a string etc. This approach has saved me
a lot of extra job.