Automation Word 2002 - Outlook 2002

H

Heike Pertzel

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
 
M

Michael Bednarek

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!!!

See:
<http://groups.google.fi/groups?threadm=eSL8uKwWBHA.1748@tkmsftngp05>.
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.
 
H

Heike Pertzel

Thanks for your answer! I will try it. Sorry for the delay, but I was ill.

Heike Pertzel / DATA 5 GmbH
 

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