
Removing black marking on selected line in listbox
If you need the users selection then save it in a module level variable.
(If not then don't worry about this part...)
Then set the
listbox.listindex = -1
and
if necessary do a
listbox.refresh
D.
Quote:
> I have in a form two different listboxes both acting as a data-source
> selection tool for the user. When I select one line in the first listbox,
> and since one line in the other listbox, the previously selected line in
the
> first listbox stays black (selected). How do I clear the black marking and
> the selection from the first listbox? I am using VBA for almost everything
> in the forms.
> TIA.
> Best regards,
> David List