PDA

View Full Version : edit selected subject line of already opened email message



DKY
07-06-2009, 08:15 AM
I have an email opened and when I forward this email to a particular individual it needs to have the first part of the subject say the same thing all the time. So I normally highlight what I want deleted and then type over it "Action needed: please approve - ". I'm looking to write a macro that will do that for me but can't figure out how to have vba work within the already opened email message. Can someone throw me some code that will accomplish this? Thanks in advance, I appreciate it.

Also posted at:
http://www.pcreview.co.uk/forums/showthread.php?p=13362719#post13362719

Mavyak
07-21-2009, 07:27 PM
This is off-the-cuff and untested but should get you in the right direction
Sub Echo_Open_Email_Subject()
Dim m As MailItem
Set m = ActiveInspector.CurrentItem
MsgBox m.Subject
Set m = Nothing
End Sub