Hi Guys,
I am currently trying to code a macro for Outlook 2007, I am totally clueless to VBA and have source for codes around for trail and error...
I need to insert a specific text before the Subject (e.g Yves: RE: Hello World)
So far I can only manage to get the code to insert (Yves: RE
if the Subject field is blank...any ideas how to make it default for new mails and reply mails to always have "Yves: RE:" in the subject?
My code as below:
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
If Trim(Item.Subject) = "" Then
Item.Subject = "Yves: RE:" + Item.Subject
End If
End Sub
Thank you.
I am currently trying to code a macro for Outlook 2007, I am totally clueless to VBA and have source for codes around for trail and error...
I need to insert a specific text before the Subject (e.g Yves: RE: Hello World)
So far I can only manage to get the code to insert (Yves: RE
if the Subject field is blank...any ideas how to make it default for new mails and reply mails to always have "Yves: RE:" in the subject?
My code as below:
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
If Trim(Item.Subject) = "" Then
Item.Subject = "Yves: RE:" + Item.Subject
End If
End Sub
Thank you.