macro's in Outlook (e-mail)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello
How can I use/copy/import existing macro's (in Word) in Outlook (office
2003) without using Word as editor ?
 
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
 
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 ?
 
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
 
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.
 
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.
 
Back
Top