Its ok, I finally got it working, here is the code if anyone is interested:
Private Sub Document_Open()
Dim intSourceRecord
Dim objMerge As Word.MailMerge
Dim bTerminateMerge As Boolean
' If no data source has been defined, do it here using OpenDataSource.
' But if it is already defined in...
I have a Word 2010 document linked to an Access 2010 data source. When a user clicks a button in Access, the Word document loads and performs a email merge using the below VBA code:
Private Sub Document_Open()
With ActiveDocument.MailMerge
.Destination = wdSendToEmail...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.