excel - Double Click Event on the items of the ListBox of a Userform VBA -


i trying small "save as" interface on excel using vba, can save of information have putted in sheet in sheet. done , looks this: click here see save interface

my problem want put event on double clicking on 1 of elements of list, let's socs2. on double click, want string "socs2" appear in textbox below.

i tried that:

private sub listbox1_beforedoubleclick(byval cancel msforms.returnboolean)  me.listbox1      = 0 .listcount - 1        if .selected(i)          me.textbox1.value = .list(i, 0)          exit        end if      next end  end sub 

my listbox called listbox1 , textbox called textbox1. unfortunately, code doesn't work: when double click on 1 of items of listbox, absolutely nothing. can me issue ?


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -