Right-click Combo Event

J

John

Hi there,

I'd like to add a right click context menu ("Delete selected item") to a
combobox so that I can right click on an item and remove it from the
combobox's source range and the combobox itself.

I'm happy with the remove code, but would appreciate help with the right
click event.

Thanks in advance

John
 
T

Tom Ogilvy

Seems like you would use the mousedown event and look at the button argument
to see if it is a right click.

You could then have the code position a commandbutton or label next to the
combobox.
 
J

John

Perfect. Thanks Tom.

In the end I just used a YesNo MsgBox having got the list item from your
MouseDown event.

Thanks again

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top