regsamp
asked on
How to remove ™ © from Outlook 2010
We have a user that has a Logitech mouse with a lot of buttons and they have two buttons setup for ™ © when writing reports but they hit it by accident when in Outlook 2010 and want it turned off.
We were able to do this in Word 2010 with the Customize Keyboard options and then remove them but there isn't the Customize Keyboard button under Customize the Ribbon in Outlook 2010. Any help removing ™ © from Outlook would be greatly appreciated.
We were able to do this in Word 2010 with the Customize Keyboard options and then remove them but there isn't the Customize Keyboard button under Customize the Ribbon in Outlook 2010. Any help removing ™ © from Outlook would be greatly appreciated.
ASKER
Let me check the Logitech Add-ins in Outlook or if anyone has example VBA code, that would be great.
ASKER
No go on the Logitech Add-in
Example VBA stub, put into the ThisOutlookSession VBA module:
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
If TypeName(Item) = "MailItem" Then
Item.Body = Replace(Replace(Item.Body, "™", ""), "©", "")
End If
End Sub
ASKER
I tried the sample VBA but no go unfortunately.
Did you put into the ThisOutlookSession module, as mentioned?
Is executing macros allowed in Outlook options?
It works for me, but it changes the formatting. I'm currently looking into this.
Is executing macros allowed in Outlook options?
It works for me, but it changes the formatting. I'm currently looking into this.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
"Did you put into the ThisOutlookSession module, as mentioned?
Is executing macros allowed in Outlook options?"
Yes and macros is allowed. When the buttons are pressed on the logitech mouse, the ™ © still come up. Okay, let me try the new code and update back.
Is executing macros allowed in Outlook options?"
Yes and macros is allowed. When the buttons are pressed on the logitech mouse, the ™ © still come up. Okay, let me try the new code and update back.
The VBA code does not prevent those characters to be inserted, only to be sent.
ASKER
Only to be sent? I am trying to get it so that when they press those buttons on the mouse by accident, they will not insert into Outlook.
That is what I said in http:#a40705157:
Other than that, you are left to write VBA code to remove the unwanted chars on send or save.
You cannot intercept input that easily. VBA does not have any means, AFAIK, unless you are using specific form controls you can register KeyPress event handlers on.
Other than that, you are left to write VBA code to remove the unwanted chars on send or save.
You cannot intercept input that easily. VBA does not have any means, AFAIK, unless you are using specific form controls you can register KeyPress event handlers on.
ASKER
Okay, well if there isn't a way from stopping it from inputting then this will be the best option. I will add it in. Thank you.
Other than that, you are left to write VBA code to remove the unwanted chars on send or save.