title: Customize word right click menu
body: <p>I have the following code to customize the right click menu:</p>
  
  <pre><code>Sub CreateMenuItem()
          Dim MenuButton As CommandBarButton
          With CommandBars("Text") 'Text, Lists and Tables
              Set MenuButton = .Controls.Add(msoControlButton)
              With MenuButton
                  .Caption = "Correct"
                  .Style = msoButtonCaption
                  .OnAction = "InsertCorrect"
              End With
          End With
      End Sub
  </code></pre>
  
  <p>It works fine with text and lists, but only partially with tables:</p>
  
  <p>With CommandBars("Tables")</p>
  
  <p>I must select the whole table or a column then it works but not inside a cell. What is the name for the context menu inside a cell or for text inside a table cell?</p>