I'm using a right menu click menu
Since the field is a rich text one I want to limit the users to paste a plain text only, but can't find the correct msoControlButton button ID
Is there another option, If there is no special ID for it ?
Thanks
Since the field is a rich text one I want to limit the users to paste a plain text only, but can't find the correct msoControlButton button ID

Is there another option, If there is no special ID for it ?
Thanks
Code:
' Create the PlainText menu.
Set cmbRightClick = CommandBars.Add("cmdPlainTextRightClick", msoBarPopup, False, True)
With cmbRightClick
' Add the Copy command.
Set cmbControl = .Controls.Add(msoControlButton, 19, , , True)
cmbControl.Caption = "Copy"
' Add the Cut command.
Set cmbControl = .Controls.Add(msoControlButton, 21, , , True)
cmbControl.Caption = "Cut"
' Add the Paste command.
Set cmbControl = .Controls.Add(msoControlButton, 22, , , True)
' Set cmbControl = .Controls.Add(msoControlButton, 755, , , True)
cmbControl.Caption = "Paste"
End With
Set cmbRightClick = Nothing