I am selecting a row in a listbox (single column, MultiSelectSingle) by code, and when the listbox is displayed in a userform the selected row is neither highlighted in blue, nor is it enclosed in the focus rectangle. I have tried the Selected, Value, and ListIndex properties, and none have the effect of highlighting the selected row.
Listbox.ListIndex = n
Listbox.Value = “abcdef”
Listbox.Selected
= True
Is it possible highlight the selected listbox row in blue by code, the same as it would be if it were clicked on by the mouse?
Listbox.ListIndex = n
Listbox.Value = “abcdef”
Listbox.Selected
Is it possible highlight the selected listbox row in blue by code, the same as it would be if it were clicked on by the mouse?