Insert merge fields from list in the Subject line

T

TimE

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.
 
D

Doug Robbins - Word MVP

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top