E
Ed
I know there are a couple of different ways to see if a document exists
(before I throw an error trying to do something with it!), but I'm wondering
if there is a "best" way - that is, one most likely to behave nicely in just
about any routine I stick it into. The path will always be the same on any
user's computer - with their username inserted, of course - so I could use
that. I've done different things - some quite by accident - in other code:
set an object to a doc that isn't there and trap the lack of an object name;
try to open it and trap the error; and such like. I tried Exists, but that
doesn't seem to work for documents. Any suggestions?
Ed
(before I throw an error trying to do something with it!), but I'm wondering
if there is a "best" way - that is, one most likely to behave nicely in just
about any routine I stick it into. The path will always be the same on any
user's computer - with their username inserted, of course - so I could use
that. I've done different things - some quite by accident - in other code:
set an object to a doc that isn't there and trap the lack of an object name;
try to open it and trap the error; and such like. I tried Exists, but that
doesn't seem to work for documents. Any suggestions?
Ed