S
Sue Mosher [MVP-Outlook]
Assuming I invoke my macro while a message is displayed in the pane of the
Application.ActiveExplorer.Selection(1) returns a single selected item.
That will require CDO 1.21 or, to avoid security prompts, Redemption (http://www.dimastr.com/redemption/), because the header is exposed only through a MAPI property. See http://www.outlookcode.com/d/forms/headers.htm for a sample Outlook form that demonstrates the technique.
FYI, there is a newsgroup specifically for general Outlook programming issues "down the hall" at microsoft.public.outlook.program_vba or, via web interface, at http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.outlook.program_vba
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
main outlook window
(e.g. Tools:Macro:Macros:xxx [Run])
What objects and/or methods do I use in the macro to get at the message?
Application.ActiveExplorer.Selection(1) returns a single selected item.
I want my macro to be able to "read" the message body, and the text of the
internet headers, and to get the smtp envelope details (assuming it is
that kind of message).
That will require CDO 1.21 or, to avoid security prompts, Redemption (http://www.dimastr.com/redemption/), because the header is exposed only through a MAPI property. See http://www.outlookcode.com/d/forms/headers.htm for a sample Outlook form that demonstrates the technique.
FYI, there is a newsgroup specifically for general Outlook programming issues "down the hall" at microsoft.public.outlook.program_vba or, via web interface, at http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.outlook.program_vba
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers