AUS_LW
03-09-2016, 03:27 PM
Hi,
I'm hoping someone can help me with this one. I thought it was going to be a cake walk, but I just can't get it to work. We have recently trademarked a phrase. So when people send an email, I need it to append the trademark (R) character if not already done. I can add it no worries, but I can't seem to stop it adding if it is already there.
Here is what I have so far:
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
On Error GoTo ExitPoint
Item.HTMLBody = Replace(Item.HTMLBody, "Phrase®", "Phrase")
Item.HTMLBody = Replace(Item.HTMLBody, "Phrase", "Phrase®")
ExitPoint:
End Sub
I did it this way incase someone pastes the word, it won't show up with two (R)s, but unfortunately, it doesn't seem to affect it.
I've also tried replacing the (R) with ? and ^? both inside and outside the "", but it doesn't work.
Does anyone know how to get around this?
Thank you for your assistance
I'm hoping someone can help me with this one. I thought it was going to be a cake walk, but I just can't get it to work. We have recently trademarked a phrase. So when people send an email, I need it to append the trademark (R) character if not already done. I can add it no worries, but I can't seem to stop it adding if it is already there.
Here is what I have so far:
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
On Error GoTo ExitPoint
Item.HTMLBody = Replace(Item.HTMLBody, "Phrase®", "Phrase")
Item.HTMLBody = Replace(Item.HTMLBody, "Phrase", "Phrase®")
ExitPoint:
End Sub
I did it this way incase someone pastes the word, it won't show up with two (R)s, but unfortunately, it doesn't seem to affect it.
I've also tried replacing the (R) with ? and ^? both inside and outside the "", but it doesn't work.
Does anyone know how to get around this?
Thank you for your assistance