Hi Paul,
I never found a way to do it, even when doing a Save As, Word maintains a
connection to the old file, such that it can't be deleted correctly.
What I did as a work around is when a file is to die, from Word the name of
the file is written to a text file. I then have a VB app that runs in the
background that periodically scans the ToDie.txt file. and kills the docs
when it can (usually within a few seconds) after Word releases them from
memory.
The kill isn't immediate, but it is effective.
HTH and have a great day!
--
~~~~~~~~~~~~~~~~~~~~~~
Stephen Lang
401 S. Carson Street
Carson City, NV 89703
775.684.6830
GMT-8
slangatlcb state nv us
~~~~~~~~~~~~~~~~~~~~~~
To respond via e-mail:
Quote:
> Can you make a Word Document delete itself? Can't delete
> it while it's open, because you get ye olde Path/File
> Access Error. Can't delete it when it's closed, because
> that terminates the code.
> Any thoughts?
> Thanks,
> Paul