Consulting

Results 1 to 2 of 2

Thread: edit selected subject line of already opened email message

  1. #1
    VBAX Regular
    Joined
    May 2008
    Posts
    11
    Location

    edit selected subject line of already opened email message

    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/sho...9#post13362719
    Last edited by DKY; 07-06-2009 at 08:44 AM.

  2. #2
    VBAX Tutor Mavyak's Avatar
    Joined
    Jul 2008
    Posts
    204
    Location
    This is off-the-cuff and untested but should get you in the right direction
    [vba]Sub Echo_Open_Email_Subject()
    Dim m As MailItem
    Set m = ActiveInspector.CurrentItem
    MsgBox m.Subject
    Set m = Nothing
    End Sub[/vba]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •