Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / June 2005

Tip: Looking for answers? Try searching our database.

Automation Word 2002 - Outlook 2002

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Heike Pertzel - 20 Jun 2005 09:11 GMT
Hallo!

I would like to run a macro, which is saved in the Outlook file
VbaProject.OTM in
Modul1, with Automation out of Word. What's the code for this?

Set OutAppl = CreateObject("Outlook.Application")
????

The other way round I can start from Outlook a macro, which is saved in any
Word-DOT, with this code:

Set WordAppl = CreateObject("Word.Application")
WordAppl.Run "Projectname.Modulname.Macroname"

Unfortunately "Run" does not exist in Outlook.
Any help would be wonderfull!!!

Thanks!
Heike Pertzel / DATA 5 GmbH
Michael Bednarek - 20 Jun 2005 14:43 GMT
>I would like to run a macro, which is saved in the Outlook file
>VbaProject.OTM in
[quoted text clipped - 11 lines]
>Unfortunately "Run" does not exist in Outlook.
>Any help would be wonderfull!!!

See:
<http://groups.google.fi/groups?threadm=eSL8uKwWBHA.1748%40tkmsftngp05>.
Quote (Sue Mosher):
 If the macro is in the built-in ThisOutlookSession module in
 Outlook VBA, then you can invoke it as a method of the Outlook
 Application object. However, this approach is not supported and
 may not survive into the next version.

Signature

Michael Bednarek   http://mbednarek.com/   "POST NO BILLS"

Heike Pertzel - 23 Jun 2005 08:07 GMT
Thanks for your answer! I will try it. Sorry for the delay, but I was ill.

Heike Pertzel / DATA 5 GmbH

>>I would like to run a macro, which is saved in the Outlook file
>>VbaProject.OTM in
[quoted text clipped - 20 lines]
>  Application object. However, this approach is not supported and
>  may not survive into the next version.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.