Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.mailmerge.fields
TimE
 
Posts: n/a
Default Insert merge fields from list in the Subject line

Is it possible to insert a merge field into the subject line?
  #2   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

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?


  #3   Report Post  
Posted to microsoft.public.word.mailmerge.fields
TimE
 
Posts: n/a
Default Insert merge fields from list in the Subject line

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?




  #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?






Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word - to make the final line of a paragraph a different allignmen LGFN Page Layout 8 May 9th 06 11:57 PM
Created distribution list but can't insert in"to" line Robert Ross Parker Microsoft Word Help 1 December 4th 05 11:36 AM
Populate Merge Fields via VB.NET ben Mailmerge 5 June 21st 05 05:43 PM
Can you create a multi-layered merge where certain merge fields a. mileszat Mailmerge 3 January 18th 05 03:46 AM
Insert merge fields C Tate Page Layout 6 November 27th 04 03:04 PM


All times are GMT +1. The time now is 02:28 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"