copy delete

M

Mark A

Is is possible to delete an open document in word? I want to delete a file
that is currently open in word using vba.

All suggestions and advice is greatly appreciated,
Mark A.
 
J

Jay Freedman

Mark said:
Is is possible to delete an open document in word? I want to delete
a file that is currently open in word using vba.

All suggestions and advice is greatly appreciated,
Mark A.

No, it isn't possible, by VBA or any other means. Windows won't permit you
to delete a file that's held open by any application. You'll have to close
the document first.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top