LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Junior Member
 
Posts: 20
Default Highlight multiple items in listbox based on textbox item

I have a user form with a ListBox2 (which represents a list for 'facility' code and description) that is populated when the form is Initialized.

I also have a text box that represents the same 'facility' that is populated when the user selects an item from a second ListBox1 (which looks at existing records on a spreadsheet and brings back records based on a series of combo box selections made by the user).

What I would like to be able to do is once the tex box has been populated by selecting ListBox1, I would like for the items (NB: there can be multiple items in the text box i.e. I have a string of text in the Facility code on the spreadsheet seperated by a carriage return in the cell) that are now in the text box to be highlighted in List Box 2!

At the moment I have code that is able to populate the text box once the user highlights multiple items in List Box 2 and exits, but I want to able to do the revers i.e. have the items become highlighted in List Box 2 (before the user has taken any action) based on the items in the text box.

Can any one help?
 
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
Selected ListBox item to TextBox Honnore Excel Programming 6 April 27th 09 06:57 AM
Adding items from Listbox to empty textbox Corey .... Excel Programming 2 January 30th 09 02:38 AM
remove items from listbox together with add item [email protected] Excel Programming 7 September 23rd 07 01:18 PM
Retaining focus on a textbox / listbox item pair after validation = false. chatterbox Excel Programming 2 April 4th 06 11:42 AM
ListBox Add Item based on criteria James W.[_2_] Excel Programming 1 February 25th 05 08:40 PM


All times are GMT +1. The time now is 01:34 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"