[VBA] Right Click Popup Menu from Userform

A few years ago, at my previous employer, I built a VBA macro that had a Right Click Copy/Paste menu for text boxes. Unfortunately, as the code was developed on the company's dime, it had to remain behind when I was downsized.

So far, my current searches are proving uneventful. Does anyone have any examples they are willing to share?

BTW, I was able to create a doubleclick copy to clipboard, but right clicking is far more commonplace and intuitive.

Here is that code:

Private Sub TxtBxNorthing_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
    Set odata = New DataObject
    odata.Clear
    odata.SetText Me.TxtBxNorthing.Text
    odata.PutInClipboard
End Sub

TIA

Parents Reply Children
No Data