PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Will Outlook run a Word macro?

Reply

Will Outlook run a Word macro?

 
Thread Tools Rate Thread
Old 07-03-2005, 03:03 PM   #1
Bob Igel
Guest
 
Posts: n/a
Default Will Outlook run a Word macro?


I have a Macro that I built using the "record new macro" function in MS Word
XP. I copied and pasted the form to OL, but it will not run there. Error msg
reads "Error 424. Object required."

I know nothing about VBA programming (guess you figured that out). Is there
no simple way to take a macro created in Word and make it run in Outlook?

Thanks for helping a newbie.

Bob in Atlanta.


  Reply With Quote
Old 07-03-2005, 04:27 PM   #2
=?Utf-8?B?RXJpYyBMZWdhdWx0IFtNVlAgLSBPdXRsb29rXQ==
Guest
 
Posts: n/a
Default RE: Will Outlook run a Word macro?

You need set a reference to the Microsoft Word X.0 Object Model in the
References dialog within the VBA Editor.

You may also need to alter the Word macro to set a reference to the document
you are automating, and hook it into the event or action where you want it to
run using the Outlook Object Model.

There are some great resources on VBA programming in Outlook at this link:

Visual Basic and VBA Coding in Microsoft Outlook:
http://www.outlookcode.com/d/vb.htm

--
Eric Legault - B.A, MCP, MCSD, Outlook MVP
--------------------------------------------------
{Private e-mails ignored}
Job: http://www.imaginets.com
Blog: http://blogs.officezealot.com/legault/

"Bob Igel" wrote:

> I have a Macro that I built using the "record new macro" function in MS Word
> XP. I copied and pasted the form to OL, but it will not run there. Error msg
> reads "Error 424. Object required."
>
> I know nothing about VBA programming (guess you figured that out). Is there
> no simple way to take a macro created in Word and make it run in Outlook?
>
> Thanks for helping a newbie.
>
> Bob in Atlanta.
>
>
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off