I initialize a userform and a listbox with different types of options like this:
---
---
Then when button is pressed i want to put the selected alternative in text in my worksheet.
---
---
But that doesnt work.
How do i get the actual selected "item" in my workbook?
Thank you for your help!
---
VBA Code:
Private Sub UserForm_Initialize()
ArrayPrimarEmb = Array("-- Ange Alternativ --", "Kit", "Rund Tub", "Platt Tub", "Oval Tub", "Glasflaska", "Fyrkantig Flaska", "Oval Flaska", "Rund Flaska", "Burk", "Tunna med Lock", "Plastdunk", "Sachee Förpackning")
PrimarEmb.List = ArrayPrimarEmb
End Sub
Then when button is pressed i want to put the selected alternative in text in my worksheet.
---
VBA Code:
Private Sub CommandButton1_Click()
Cells(1, "E").Value = PrimarEmb.Value
End Sub
But that doesnt work.
How do i get the actual selected "item" in my workbook?
Thank you for your help!