Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
mail merge to email - message body AND attachment | Mailmerge | |||
Body Text vs Normal | Formatting Long Documents | |||
Printing an Attachment containing {FORMTEXT} | New Users | |||
Please Help! (Mail merge e-mailing with images in Body) | Mailmerge | |||
option send to e-mail address (as attachment) unavailable | Microsoft Word Help |