Listbox with Multiselect set to fmMultiSelectMulti
aSelected = Array of booleans determined by examining active worksheet
Code: Select all
'and update listbox
For iCount = 0 To Me.Listbox.ListCount - 1
Me.Listbox.Selected(iCount) = aSelected(iCount)
Next iCount
Complications
Listbox.ControlSource is to a range in an open but not active workbook (contain formulas dependent upon the selection state and a value in a textbox)
A frame containing a number of text boxes overlays the listbox (which will lead to another question...)