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 |
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 |
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 |
All times are GMT +1. The time now is 02:25 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com