B
bmcknight
I have a user who is able to record macros within Word and run them. However, when she attempts to run the macro within an open Outlook message (by going to the "Macros" button that is within the Developer tab of an open message window, these same macros do not initially appear despite the fact that Word is the exclusive editor for Outlook 2007. To the best of my understanding according to Microsoft, is is not possible to record macros within Outlook (if you can, I do not see where or how). It is possble to make the macro appear within Outlook if you were to copy the subroutine pertaining to the macro from Word's Visual Basic editor to Outlook's Visual Basic editor, but when you then actually attempt to run the macro within Outlook, you get the following error message
----------------------------- Runtime Error '424'
Object Required
----------------------------
According to the below, referenced article (authored by Sue Mosherwho I guess is a top of the line Outlook expert), this is because "the Outlook object model does not support an intrinsic Selection object". Code is provided within the article which is designed to enable the Outlook message to access a Word.Selection object. However, when I attempted to incorporate this code into Outlook Visual Basic editor to run a test macro, I got the following error message:
---------------------------------------------- Compile error:
User-defined type not defined
----------------
Should I be modifying this code to a greater extent? I have some VB experience as a student, but not on a pro level. Regardless, I would like to be able to get my user to be able to run her macros within an Outlook e-mail.
http://turtleflock-ol2007.spaces.live.com/blog/cns!C1013F1F9A99E3D8!579.entry&sa=79757417