View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default Bug in multiselect listbox?

Libra_FrmPrintRpt.lbKlas.selected(Libra_FrmLogin.c bKlas.ListIndex) = True

--
Regards,
Tom Ogilvy


"Jos Vens" wrote in message
...
Hi,

I have a listbox with the property multiselectextended. I want by default
have one item selected. It only works when I set the property to
multiselectsingle.

Libra_FrmPrintRpt.lbKlas.ListIndex = Libra_FrmLogin.cbKlas.ListIndex
'it works

'Libra_FrmPrintRpt.lbKlas.MultiSelect = fmMultiSelectExtended
'if I decomment this (or set the property in vba-form), it doesn't work
anymore.

Is this a bug, is there a workaround to select by default an item?

Thanks
Jos Vens