View Single Post
  #4   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Doug Robbins - Word MVP
 
Posts: n/a
Default Insert merge fields from list in the Subject line

That is because you did not follow the instructions and set the reference to
the Outlook Object Library.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"TimE" wrote in message
...
Thank you Doug.

I think I understand what needs to be done, but I get an error when
running
the macro.

Compile Error:
User-defined type not defined

Dim oOutlookApp As Outlook.Application


From this section of code:

Dim Source As Document, Maillist As Document
Dim Datarange As Range
Dim Counter As Integer, i As Integer
Dim bStarted As Boolean
Dim oOutlookApp As Outlook.Application
Dim oItem As Outlook.MailItem
Dim mysubject As String, message As String, title As String


Again, thank you for your assistance.

"Doug Robbins - Word MVP" wrote:

It can be done using a modification of the method in the article "Mail
Merge
to E-mail with Attachments" at:

http://word.mvps.org/FAQs/MailMerge/...ttachments.htm

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

"TimE" wrote in message
news
Is it possible to insert a merge field into the subject line?