View Single Post
  #9   Report Post  
Posted to microsoft.public.word.mailmerge.fields
Peter Jamieson Peter Jamieson is offline
external usenet poster
 
Posts: 4,582
Default Challenging: emailmerge attachment + body

I get a compilation error... I'm using the spanish version of Office, so I
don't know exactly how to translate it. However, it says something about
"defined type has not been defined by user"...


OK. For future reference it is usually useful to quote the error in the
original language (at least for languages that use the latin alphabet).

Assuming that the Intellisense feature is switched on in the VB Editor, can
you start typing

Dim objMailItem As

then see what options are offered. You are obviously looking for something
like "Outlook." I would not normally expect this kind of thing to be
different in different language versions of Windows or Office, but perhaps
this is an exception. (e.g. does Outlook have a different name in the
Spanish language version?)

If you can get as far as "Outlook", type a "." then see what else is
offered. Again, I would expect "MailItem", but perhaps it is something else.
The same applies to the other definition.

Peter Jamieson
"Albert" wrote in message
...
Outlook 11 reference checked...
I'm using Word 11 and Outlook 11.
I get a compilation error... I'm using the spanish version of Office, so I
don't know exactly how to translate it. However, it says something about
"defined type has not been defined by user"...


"Peter Jamieson" wrote:

First, have a look under Tools|references again and ensure that the
Microsoft Outlook whatever library is checked (it will be near the top
of
the list if it is).

What error message is displayed?

Which versions of Word and Outlook?

Peter Jamieson

"Albert" wrote in message
...
Hi Peter.
Thanks again for all your help.
Did what you just told me.
I get errors in these two lines:

Dim objMailItem As outlook.MailItem
Dim objOutlook As outlook.Application

what to do?
Thanks,
Albert