Anyone has idea to Split the value of Combobox.Text with smoother functioning
I tried the following
Combobox1.Drop button style = 1
Got Stuck with above coding only and not moved further on
As it displays the two Separate values in ComboBox
When Clicked with Down Arrow Key button it only displays 1st value and really cannot go further down
Also have to select the value when dropdown. Really Event is not smooth triggering
With selection on the particular item it shows that single value but with down arrow key not happening
Regards
NimishK
I tried the following
Code:
Private Sub UserForm_Initialize()
Combobox1.List = Worksheets("Sheet1").Range("A2").CurrentRegion.Offset(1).Value
End Sub
Private Sub Combobox1_Click()
Dim splitValue() As String
Dim comboListName As String
Dim idx As Long
comboListName = Combobox1.Text
idx = Combobox1.ListIndex
splitValue = Split(comboListName, " ")
Combobox1.Text =splitValue(0)
''''Basically to read value of 1st most left values ie why i used splitvalue(0)
If idx <> -1 Then
ComboBox1.Text = splitValue(0)
End If
End Sub
Combobox1.Drop button style = 1
Got Stuck with above coding only and not moved further on
As it displays the two Separate values in ComboBox
When Clicked with Down Arrow Key button it only displays 1st value and really cannot go further down
Also have to select the value when dropdown. Really Event is not smooth triggering
With selection on the particular item it shows that single value but with down arrow key not happening
Regards
NimishK
Last edited: