Hi,
I pretty good with VB6, but haven't worked with VBA.

Here's what I want to do,
I have a list of words that have matching replacement words.

If the user selects and right clicks a word in his WOrd Doc, I want to search my list.
If the selected word is in the list I want to temp add a new option to the right click menu, the option would have a sub menu of the matching words from the list.

Example:
Code:
    Cut
    Copy
    Paste
    --------------
    Optional Words
        Repalcement1
        Repalcement2
        Repalcement3
I've been going through the help files and cobbled this together, but it's not quite it.

I supose I could add the replacment words to the combo, but I wouldn't know how to add them or what sub to add in order to react to a combobox click.

VB Code:
  1. Public WithEvents appWord As Word.Application
  2.  
  3. Private Sub appWord_WindowBeforeRightClick _
  4.         (ByVal Sel As Selection, _
  5.         Cancel As Boolean)
  6.    
  7.     Set myBar = CommandBars _
  8.         .Add(Name:="Custom", Position:=msoBarPopup, Temporary:=True)
  9.     With myBar
  10.         .Controls.Add Type:=msoControlButton, ID:=3
  11.         .Controls.Add Type:=msoControlComboBox
  12.     End With
  13.     myBar.ShowPopup
  14.  
  15. End Sub