Please help, I am writing a VBA routine in Access to send emails with 1 of more attachments based on the same Word.Dot template.
The idea is to open the Word template, make some changes and then SaveAs into a temp folder, then when ready email the attachments, clear the folder and then move onto the next contact.
My problem is that I can save the docs but I can’t delete them before moving on to the next contact because the docs are all still open.
I assume there is a way to open a template and then save and close the changed file and still have the template open.
If not it will take forever if I have to keep reopening the template
The idea is to open the Word template, make some changes and then SaveAs into a temp folder, then when ready email the attachments, clear the folder and then move onto the next contact.
My problem is that I can save the docs but I can’t delete them before moving on to the next contact because the docs are all still open.
I assume there is a way to open a template and then save and close the changed file and still have the template open.
If not it will take forever if I have to keep reopening the template