How to set subject line in replies using VBA

Status
Not open for further replies.

Outlooker85

New Member
Outlook version
Outlook 2010 32 bit
Email Account
POP3
Hi everyone,

I am trying to set our company email's subject each time we send an email. I am using this VBA code:


Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)

If (Left(Trim(Item.Subject), 11)) <> "Company name " Then

Item.Subject = "Company name " + Item.Subject

End If

End Sub


The issue I am having is that when replying to emails our company name keeps appearing. What is the VBA code I can use to recognize the RE: of a reply email and not insert our company name into the subject line?
 
Status
Not open for further replies.
Top