ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Listbox Item Focus (https://www.excelbanter.com/excel-programming/386446-listbox-item-focus.html)

Kagan Clearwater[_2_]

Listbox Item Focus
 
Hi all,

I have MainLbx display a list of categories to select from. On Double-click,
MainLbx brings up the selections for only that category (say SODA as
category, Coke, Pepsi as selections).

When the user double-clicks on the item, it will be added to a cell in the
same worksheet. The problem is when the user first tries to doubleclick on an
item (after doubleclicking on the category), the listbox jumps to the third
selection in the row.

I have tried:

MainLbx.Selection(0) = True
MainLbx.ListIndex = -1

Thanks for the help!

Kagan Clearwater[_2_]

Listbox Item Focus
 
Any suggestions would be appreciated!

Thanks,

"Kagan Clearwater" wrote:

Hi all,

I have MainLbx display a list of categories to select from. On Double-click,
MainLbx brings up the selections for only that category (say SODA as
category, Coke, Pepsi as selections).

When the user double-clicks on the item, it will be added to a cell in the
same worksheet. The problem is when the user first tries to doubleclick on an
item (after doubleclicking on the category), the listbox jumps to the third
selection in the row.

I have tried:

MainLbx.Selection(0) = True
MainLbx.ListIndex = -1

Thanks for the help!



All times are GMT +1. The time now is 09:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com