Cannot change ListBox properties of a VBA form in Excel

Viewed 57

It is not possible to change the ListBox properties (TextColor, BorderColor, BackColor…) from within the ListBox event procedure. Example:

Private Sub MyListBox_Click()
  MyListBox.BackColor = vbGreen
End Sub

This has no effect. From within another Subs it works normally.

1 Answers
Related