Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default 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   Report Post  
Posted to microsoft.public.excel.programming
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




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiselect Listbox use RKS Excel Discussion (Misc queries) 1 May 12th 06 03:04 PM
MultiSelect ListBox StephanieH Excel Programming 5 November 20th 04 12:29 AM
Multiselect Listbox Francis Ang[_3_] Excel Programming 0 October 27th 04 02:21 AM
Multiselect Listbox Francis Ang[_3_] Excel Programming 2 October 25th 04 01:57 AM
multiselect listbox CG Rosén Excel Programming 2 December 28th 03 05:17 PM


All times are GMT +1. The time now is 05:07 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"