Advertisement

05.07.2008 at 07:33AM PDT, ID: 23382898
[x]
Attachment Details

Remove item from right click menu

Asked by todd_pravata in Microsoft Office Suite, Microsoft Programming

Tags: Microsoft, Word, 2002 SP3

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
[+][-]05.07.2008 at 07:56AM PDT, ID: 21517098

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Office Suite, Microsoft Programming
Tags: Microsoft, Word, 2002 SP3
Sign Up Now!
Solution Provided By: AllKnowing1
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.07.2008 at 08:37AM PDT, ID: 21517539

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628