T
tf
Hello,
with aVBA mailmerge object,
I want to send with each mail the same body.
Since it can't be done directly, how to use the main merge document
(I have only one *.doc)
to add another field in which I insert the "body" message
BUT with giving only this field in the body (plain text)
and all the other fiels in an attached file ?
Thank you
---------------
For Each afield In ActiveDocument.MailMerge.DataSource.DataFields
Selection.WholeStory
With ActiveDocument.MailMerge
.Destination = wdSendToEmail
.SuppressBlankLines = True
.MailSubject = "My subject is _____"
////////////////////////////////////////////////////////////////////////////
//////////////////////
// Insertion ici du .Body de l'objet Outlook ??
////////////////////////////////////////////////////////////////////////////
////////////////////////
With .DataSource
.FirstRecord = ActiveDocument.MailMerge.DataSource.ActiveRecord
.LastRecord = ActiveDocument.MailMerge.DataSource.ActiveRecord
End With
.Execute Pause:=False
End With
ActiveDocument.MailMerge.DataSource.ActiveRecord = wdNextRecord
Next afield
with aVBA mailmerge object,
I want to send with each mail the same body.
Since it can't be done directly, how to use the main merge document
(I have only one *.doc)
to add another field in which I insert the "body" message
BUT with giving only this field in the body (plain text)
and all the other fiels in an attached file ?
Thank you
---------------
For Each afield In ActiveDocument.MailMerge.DataSource.DataFields
Selection.WholeStory
With ActiveDocument.MailMerge
.Destination = wdSendToEmail
.SuppressBlankLines = True
.MailSubject = "My subject is _____"
////////////////////////////////////////////////////////////////////////////
//////////////////////
// Insertion ici du .Body de l'objet Outlook ??
////////////////////////////////////////////////////////////////////////////
////////////////////////
With .DataSource
.FirstRecord = ActiveDocument.MailMerge.DataSource.ActiveRecord
.LastRecord = ActiveDocument.MailMerge.DataSource.ActiveRecord
End With
.Execute Pause:=False
End With
ActiveDocument.MailMerge.DataSource.ActiveRecord = wdNextRecord
Next afield