Setting reference in VB Editor

L

Lana

I access VB Editor in MS Word and check the box next to
Microsoft Office Outlook 9.0 Object Library, but every
time a run the 'emailmergewithattachments()' macro, I get
a Compile Error - User-defined type not defined. How can
I get past this (get it to acknowledge that it has been
done)? The instructions for this macro were contributed
by Doug Robbins.
 
P

Peter Jamieson

One possibility:

Did you put the macro in the Normal template, the document you are trying to
merge, or the template it is attached to, if that is not the Normal
template?

Wherever you put it, that document or template needs to be selected (the
easiest thing to do is open the module containing the
'emailmergewithattachments()' macro) before you use the Tools|References
dialog to check the Outlook object library.
 
L

Lana

Thank you, Peter, that worked just fine.

Lana
-----Original Message-----
One possibility:

Did you put the macro in the Normal template, the document you are trying to
merge, or the template it is attached to, if that is not the Normal
template?

Wherever you put it, that document or template needs to be selected (the
easiest thing to do is open the module containing the
'emailmergewithattachments()' macro) before you use the Tools|References
dialog to check the Outlook object library.

--
Peter Jamieson




.
 

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