Long ago I added a custom menu item to the right click menu in Word. If I highlight some text, and then right click, I see that menu item. I can't remember how I did it and I can't find out how to remove it. Anyone have detailed instructions for removing it?
Here's what I've tried from the Script Editor inside of Word (with no luck):
Sub AutoExec()
Dim cb As CommandBar
Dim ctl As CommandBarControl
CustomizationContext = NormalTemplate
Set cb = CommandBars("Text")
For Each ctl In cb.Controls
If ctl.Tag = "MY CUSTOM COMMAND" Then
ctl.Delete
End If
Next
End Sub
Maybe it's not the "Text" commandbar? If not, how do I get a hold of the right click menu?
Start Free Trial