Tony, sorry for my bad English. I want to get the macro that will build list of the commands and them IDs for the buttons on Word 2007's Ribbon (and for other commands that miss on the Ribbon). Next I want to use these values (IDs) into the macro, that add into the shortcut Menu any commands or buttons, e.g. "Paste Special". That is sample:
Sub newItemToContextMenu()
Dim cb As CommandBar
Dim cbb As CommandBarButton
Dim cbc As CommandBarControl
CustomizationContext = NormalTemplate
On Error GoTo Ex
Set cb = CommandBars("text")
Set cbb = cb.FindControl(ID:=755)
If Not cbb Is Nothing Then Exit Sub
Set cbb = cb.Controls.Add(msoControlButton, 755, 1)
Set cbb = Nothing
Ex:
End Sub
Is there any way get that macro?