Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Listbox selection hangs

When I select an item in a listbox, the selection tends to hang. If I clear
the query information and click on the same item again, nothing happens. I
have to click off the item, and click back on it to get it to work. Also,
sometimes when I select the next item, the last item is still the one
highlighted. What do I need to do to clean this up?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Listbox selection hangs

It sounds like this ListBox is being controlled by some code, so I'm
thinking you will need to show us that code before someone here could make
any kind of guess as to what is causing your problem. It would also help us
if you told us where the ListBox is located at... on a UserForm or on a
worksheet? If on a worksheet, where did you get the ListBox at... the
ActiveX Control Toolbox Toolbar or the Forms Toolbar?

--
Rick (MVP - Excel)


"Merlynsdad" wrote in message
...
When I select an item in a listbox, the selection tends to hang. If I
clear
the query information and click on the same item again, nothing happens. I
have to click off the item, and click back on it to get it to work. Also,
sometimes when I select the next item, the last item is still the one
highlighted. What do I need to do to clean this up?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Listbox selection hangs

I solved my own problem. When I clear the data Ii added the line

lstBox1.listindex=-1

and it works just fine.

"Merlynsdad" wrote:

When I select an item in a listbox, the selection tends to hang. If I clear
the query information and click on the same item again, nothing happens. I
have to click off the item, and click back on it to get it to work. Also,
sometimes when I select the next item, the last item is still the one
highlighted. What do I need to do to clean this up?

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
Listbox Selection melissa Excel Programming 2 August 14th 07 01:53 PM
Listbox & Selection sparx Excel Discussion (Misc queries) 0 July 31st 06 10:48 PM
Listbox selection Jonathan Excel Programming 4 July 27th 06 10:02 PM
Listbox Selection Todd Huttenstine Excel Programming 1 December 9th 04 08:37 PM
ListBox selection GMet Excel Programming 1 September 24th 04 08:02 PM


All times are GMT +1. The time now is 01:51 PM.

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

About Us

"It's about Microsoft Excel"