Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Please help me to use a Word template from Access VBA

Status
Not open for further replies.

newboy18

MIS
Apr 11, 2003
45
GB
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



 
Thanks Rick,
I do use these commands but they mean I have to reload the Template after saving each doc, what I wanted was to open the Template, Save the changes to a new doc, close the new doc but still have the Template open.
If I can do this it will save loads of time and processing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top