View Single Post
  #4  
Old May 20th 10, 07:31 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Forward Email and Insert Sender's Email address in body

Assuming only 1 item is selected:
Application.ActiveExplorer.Selection.Item(1) instead of the
Inspector.CurrentItem.

What Outlook version are you using? If you are using Outlook 2007 or later
you can get the SMTP address, if you are using an earlier version of Outlook
you'd need to use a different, lower level API to get that property, which
isn't exposed in Outlook 2003 or earlier.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"LDMueller" wrote in message
...
Sorry about the duplicate post. When I went back to check the status and
didn't see the orginal one, I thought perhaps I didn't post it properly.

I tried your suggestion and it worked except my sender is an Exchange
user.
Is there any way around this?

Also, the way I have it written, I have to have the email open for the
macro
to work. Is there a way to have it work when the email is currently
selected?

Thanks so much for your help. I really appreciate it!


Ads