Reply
 
Thread Tools Display Modes
  #1   Report Post  
smcash
 
Posts: n/a
Default Macro that opens Outlook

I found a macro in this article:

http://word.mvps.org/FAQs/MailMerge/...ttachments.htm

I tried it, but I got this error:

"Compile error: user-defined type not defined"

with regard to this line in the macro:

Dim oOutlookApp As Outlook.Application

Can anyone help with this?
  #2   Report Post  
smcash
 
Posts: n/a
Default

Never mind, I fixed it. Upon reading the article a little more closely, I
discovered I had to set a reference.

-smcash



"smcash" wrote:

I found a macro in this article:

http://word.mvps.org/FAQs/MailMerge/...ttachments.htm

I tried it, but I got this error:

"Compile error: user-defined type not defined"

with regard to this line in the macro:

Dim oOutlookApp As Outlook.Application

Can anyone help with this?

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
Send Word doc as attachment using Outlook, not Outlook Express, h. Edwin of Northumbria Microsoft Word Help 1 February 12th 05 02:44 PM
Create macro that changes the folder Word opens Ronni Backer Microsoft Word Help 2 February 10th 05 07:57 PM
Using Word 2000 Send To Mail Recipient with Outlook 2000 carolpm Microsoft Word Help 1 February 7th 05 08:03 PM
Save As is not working due to macro security settings Craig Meritz Microsoft Word Help 1 December 16th 04 03:53 AM
2000 to 2002 macro and "Could not open macro storage" Art Farrell Mailmerge 1 December 6th 04 12:40 PM


All times are GMT +1. The time now is 10:53 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"