Oliver Dewar
Board Regular
- Joined
- Apr 17, 2011
- Messages
- 201
Hi All.
I have a listbox (from the forms menu) and I'd like to make it run a macro on double click (at the moment it only fires on change or click).
Here's what I'm thinking:
1. Link listbox to a cell so the number value can be turned into the text string from the listbox when the macro is run.
2. Put a macro in the beforedoubleclick event of the worksheet.
3. Set the macro to run only if mouse is hovering over the listbox.
My question therefore is what code to put into the beforedoubleclick event that tests for hover over the listbox and only runs if the mouse is hovering over the listbox?
Thanks all.
I have a listbox (from the forms menu) and I'd like to make it run a macro on double click (at the moment it only fires on change or click).
Here's what I'm thinking:
1. Link listbox to a cell so the number value can be turned into the text string from the listbox when the macro is run.
2. Put a macro in the beforedoubleclick event of the worksheet.
3. Set the macro to run only if mouse is hovering over the listbox.
My question therefore is what code to put into the beforedoubleclick event that tests for hover over the listbox and only runs if the mouse is hovering over the listbox?
Thanks all.
Last edited: