A
Apples76
i am trying to automate emailing a word form using vb in access.
it looks like i have the open and email side working but i am not able to
'save as'
could someone look at the code and advise please.
also i will need to assign a file name based on several fields joined
together, could someone please be able ot advise?
extract from code
Set WordObj = GetObject(, "Word.Application")
WordObj.Visible = True
WordObj.documents.Open "C:\Access info\planning_form_email_v1.0.Doc", ,
, True
WordObj.SaveAs ("C:\Access info\forms\planningform.doc")
WordObj.Options.SendMailAttach = True
WordObj.ActiveDocument.SendMail
it looks like i have the open and email side working but i am not able to
'save as'
could someone look at the code and advise please.
also i will need to assign a file name based on several fields joined
together, could someone please be able ot advise?
extract from code
Set WordObj = GetObject(, "Word.Application")
WordObj.Visible = True
WordObj.documents.Open "C:\Access info\planning_form_email_v1.0.Doc", ,
, True
WordObj.SaveAs ("C:\Access info\forms\planningform.doc")
WordObj.Options.SendMailAttach = True
WordObj.ActiveDocument.SendMail