Delete the file

S

Senad Isanovic

From VBA macro I need to save the Word file temporarily in two different
directories and then to delete that file. I know how to save the file but I
don't know how to delete the same file? Thanks
 
J

Jonathan West

Senad Isanovic said:
From VBA macro I need to save the Word file temporarily in two different
directories and then to delete that file. I know how to save the file but I
don't know how to delete the same file? Thanks

Use the Kill statement.

The file must not be open when you try to delete it
 

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