ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how to drag and drop from a listbox to activecell with vba ? (https://www.excelbanter.com/excel-programming/365259-how-drag-drop-listbox-activecell-vba.html)

ka

how to drag and drop from a listbox to activecell with vba ?
 
Hello,

how to drag and drop from a listbox to activecell with vba ?

Thanks,





Ron de Bruin

how to drag and drop from a listbox to activecell with vba ?
 
Hi Ka

You can use the Double click event maybe ?

Private Sub ListBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
ActiveCell.Value = Me.ListBox1.Value
End Sub

--
Regards Ron De Bruin
http://www.rondebruin.nl



"ka" wrote in message ...
Hello,

how to drag and drop from a listbox to activecell with vba ?

Thanks,







ka

how to drag and drop from a listbox to activecell with vba ?
 
Thanks you Ron de Bruin, it's ok !
bye


"Ron de Bruin" a écrit dans le message de news:
...
Hi Ka

You can use the Double click event maybe ?

Private Sub ListBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
ActiveCell.Value = Me.ListBox1.Value
End Sub

--
Regards Ron De Bruin
http://www.rondebruin.nl



"ka" wrote in message
...
Hello,

how to drag and drop from a listbox to activecell with vba ?

Thanks,










All times are GMT +1. The time now is 08:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com