If you can't see a path then ThisDocument hasn't been saved yet.
With the other line, what is the value of strFileName at the time of the error?
You can debug these errors more easily if you watch values of the variables involved.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
|