Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Bug in multiselect listbox?
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 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Bug in multiselect listbox?
Thanks Tom,
it works perfect! Jos "Tom Ogilvy" schreef in bericht ... 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Multiselect Listbox use | Excel Discussion (Misc queries) | |||
MultiSelect ListBox | Excel Programming | |||
Multiselect Listbox | Excel Programming | |||
Multiselect Listbox | Excel Programming | |||
multiselect listbox | Excel Programming |