macro's in Outlook (e-mail)

B

Ben

Hello
How can I use/copy/import existing macro's (in Word) in Outlook (office
2003) without using Word as editor ?
 
S

Sue Mosher [MVP-Outlook]

It's not clear what you're trying to do. A macro that runs in Word won't be very relevant to Outlook VBA unless you rewrite it to instantiate a Word.Applicatioin object etc.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
B

Ben

The macro in Word makes it possible to change my standard printer to a
virtual PDF printer and another macro brings back the standard printer. I
would like to use these macro's in Outlook as well. Can 't I import/copy them
to a location in Outlook without using Word as editor ?
 
S

Sue Mosher [MVP-Outlook]

If they don't involve Word objects, they should work the same in Outlook as long as you add the necessary references.

If they do involve Word objects, then reread my earlier response.

Note that Outlook itself has no programmatic concept of a standard printer.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
H

Howard Kaikow

You would be better off putting the Word macro in a DLL.
THat way, u would have the code in just one place and could use the code in
Word and Outlook and ..., as appropriate, depending upon what the code does.
 
B

Ben

Is this simple ? How does it work ? I'm not an expert. I think maybe for me
the simplest way is to create the marcro's in Outlook as well.
 
Top