LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel VBA/Listbox Query


Hi,

I have an ActiveX Listbox located in an Excel worksheet and I am using
it as a way to allow the user to select an item from the listbox and
then there is a table next to this which some VBA code copies different
data into depending on what item is selected in the list box.

The user can then edit the current data in the table by simply
selecting the relevant cell(s) and then manually entering new text or
figures.

The problem I am having is that if the user changes the data in the
table and the -doesn't press Enter/Return- before selecting another
item in the listbox, the code associated with the listbox doesn't run.

I would guess that the focus is still on the active cell because
Enter/Return has not been pressed. Is there any VBA code that I can use
that will get around this? I was thinking of something like "GetFocus"
to put the focus back on the listbox when an item is selected from it
but I can't get this to work.

Anyone here have any ideas?

Thanks
-Rob


--
TheRobsterUK


------------------------------------------------------------------------
TheRobsterUK's Profile: http://www.excelforum.com/member.php...fo&userid=9924
View this thread: http://www.excelforum.com/showthread...hreadid=481873

 
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 in excel that is an option for sql query Laoballer Excel Discussion (Misc queries) 0 September 24th 08 12:15 AM
Listbox Query Again Greg B Excel Discussion (Misc queries) 1 September 16th 05 05:01 PM
Listbox query Greg B[_5_] Excel Programming 4 September 3rd 05 05:04 AM
listbox query [email protected] Excel Programming 0 May 12th 05 04:47 PM
Must be better way...Using Listbox Selection to Query Data NNexcel Excel Programming 2 October 5th 04 01:25 PM


All times are GMT +1. The time now is 08:03 AM.

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"