I have a Combobox in my Spreadsheet. I am trying to get the selected value from it. But not been able to do so.
These are the Codes that I tried:
Range("A1")=ComboBox1.SelectedItem
And
Range("A1")=ComboBox1.Value
Kindly help me with this. They both are not working.
This is how I added the Items to the Combobox:
For i = 2 To lastnum
disName= ThisWorkbook.Sheets(final).Range(Col& i).Value
With wb21Tool.Sheets("Main").ComboBox1
.AddItem disName
End With
Next
Range("A1")=ComboBox1.Valueshould work!wb21Tool.Sheets("Main").Range("A1").Value = wb21Tool.Sheets("Main").ComboBox1.Value, it worked for me