I am using the first listitem in a ListBox to serve as a header row in a multicolumn ListBox but I can't seem to visually unselect it when the user selects it (since it's not actually an item I want to be selectable).
I have the change event set to this (have attempted multiple ways to unselect as you can see)
Private Sub ingredientsbox_Change()
If ignoreRefresh = True Then Exit Sub
If ingredientsbox.ListIndex = 0 Then
ignoreRefresh = True
ingredientsbox.ListIndex = -1
ingredientsbox.Selected(0) = False
ingredientsbox.value = ""
ignoreRefresh = False
End If
End Sub
The ingredientsbox.ListIndex correctly changes but the row is still visibly selected. Is there a way to make the selection visually go away? Thanks
Bookmarks