Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / June 2006

Tip: Looking for answers? Try searching our database.

Insert merge fields from list in the Subject line

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TimE - 06 Jun 2006 23:32 GMT
Is it possible to insert a merge field into the subject line?
Doug Robbins - Word MVP - 07 Jun 2006 04:53 GMT
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/MergeWithAttachments.htm

Signature

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

> Is it possible to insert a merge field into the subject line?
TimE - 07 Jun 2006 17:59 GMT
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.

> 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/MergeWithAttachments.htm
>
> > Is it possible to insert a merge field into the subject line?
Doug Robbins - Word MVP - 08 Jun 2006 04:45 GMT
That is because you did not follow the instructions and set the reference to
the Outlook Object Library.

Signature

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

> Thank you Doug.
>
[quoted text clipped - 26 lines]
>>
>> > Is it possible to insert a merge field into the subject line?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.