Reply
 
Thread Tools Display Modes
  #1   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

Hi,

Just back from a trip, hence delay. Saw your other message.

Did you do this:

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


?

It's best if you make the reference when the module containing the routine
is open in VBE.

Peter Jamieson
"crazycaper" wrote in message
...
I was following along, I need this macro as well. I got to the same error
as
him (running an English versian) I got the same compilation error.

Dim objMailItem As Outlook.MailItem Isn't taking Outlook doesn't exsist,
I'm
curious to what Albert ended up going with, as he didn't say in his reply.

"Peter Jamieson" wrote:

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








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
mail merge to email - message body AND attachment Dan Mailmerge 1 May 26th 06 05:48 PM
Body Text vs Normal Adrian Formatting Long Documents 13 March 9th 06 05:01 AM
Printing an Attachment containing {FORMTEXT} Bernard Littman New Users 4 February 24th 06 12:18 PM
Please Help! (Mail merge e-mailing with images in Body) [email protected] Mailmerge 2 January 17th 06 03:25 PM
option send to e-mail address (as attachment) unavailable NotAnExpert Microsoft Word Help 1 April 20th 05 03:36 PM


All times are GMT +1. The time now is 12:38 AM.

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"