I found the following code to update the subject line.
Sub ChangeSubjectSelection()
Dim selectionIndex As Long
Dim itm As Object
For selectionIndex = 1 To ActiveExplorer.Selection.Count
Set itm = ActiveExplorer.Selection(selectionIndex)
If TypeOf itm Is MailItem Then
itm.Subject = "add value here-" & itm.Subject
itm.Save
End If
Next
End Sub
- I want this on all outbound emails, but from reading it looks like I have to enable macros, which could be a security risk for inbound emails - yes?
- I added a button to the toolbar for outbound emails to fire the VBA, but it changed the ORIGINAL email, not the REPLY email.
I want this on ALL OUTBOUND emails. Forwards, new, replies should have this new word or phrase in the subject- but my current method is updating basically the last email I was sitting on- if I was replying, it would update the original. If I am creating an email it updates the last email I had opened.