-
Find and Replace in message Body
hi,
Iam searching for a vb code to find and replace specific words in every outgoing mail in outlook 2007.
Also to note that every outgoing mail might not contain those specific words.Will probably need an "IF" condition.
I would really appreciate it if someone could help me out on this.
If this query has been discussed earlier i would be glad to check that particular posting.
Regards
Arjun
-
Check out the ItemSend Event.
-
@jp thanks for the tip ,The itemsend event is the event ,when the mail is about to be sent.Iam trying to figure out how to find and replace words in the body of the mail being sent during the itemsend event..!!
-
[VBA]Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Item.HTMLBody = Replace(Item.HTMLBody, "test", "hello")
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
-
Forum Rules