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

  • Thread starter Thread starter ka
  • Start date Start date
K

ka

Hello,

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

Thanks,
 
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
 
Thanks you Ron de Bruin, it's ok !
bye


Ron de Bruin said:
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
 

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

Back
Top