Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
tom tom is offline
external usenet poster
 
Posts: 570
Default ListBox Click...

I made a userform that will compile a list of deliquent customers, and put
them in a listbox. I wish to activate a Customer info form that'll display
the information of the customer that you click on from the listbox. I need
help with only one part of this. The listboxe has a 12 character phone number
before every item (ie - 254-254-2542 - James Patterson) I wish to perform the
search based off of the first 12 characters in the string (the phone number)
when I click on one of the items from the list. Can someone give me a clue as
to how to do this.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default ListBox Click...

Just extract that part of the selected item,

Left(Listbox1.Value,12)

and use that in your search.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"tom" wrote in message
...
I made a userform that will compile a list of deliquent customers, and

put
them in a listbox. I wish to activate a Customer info form that'll display
the information of the customer that you click on from the listbox. I need
help with only one part of this. The listboxe has a 12 character phone

number
before every item (ie - 254-254-2542 - James Patterson) I wish to perform

the
search based off of the first 12 characters in the string (the phone

number)
when I click on one of the items from the list. Can someone give me a clue

as
to how to do this.



  #3   Report Post  
Posted to microsoft.public.excel.programming
tom tom is offline
external usenet poster
 
Posts: 570
Default ListBox Click...

Thanks Bob. That was a big help. People like you, help my business run
better, and I am grateful. Happy New Year!
Tom

"Bob Phillips" wrote:

Just extract that part of the selected item,

Left(Listbox1.Value,12)

and use that in your search.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"tom" wrote in message
...
I made a userform that will compile a list of deliquent customers, and

put
them in a listbox. I wish to activate a Customer info form that'll display
the information of the customer that you click on from the listbox. I need
help with only one part of this. The listboxe has a 12 character phone

number
before every item (ie - 254-254-2542 - James Patterson) I wish to perform

the
search based off of the first 12 characters in the string (the phone

number)
when I click on one of the items from the list. Can someone give me a clue

as
to how to do this.




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
capture listbox click Joanne New Users to Excel 13 July 7th 07 01:00 PM
listbox click event help Michael Malinsky Excel Programming 4 December 23rd 05 09:27 PM
click event on listbox CStephenson Excel Programming 1 March 22nd 05 06:21 PM
Listbox on click WiReLaD Excel Programming 2 October 22nd 03 07:33 PM
Is refreshing listbox rowsource in listbox click event possible? Jeremy Gollehon[_2_] Excel Programming 4 September 25th 03 06:45 PM


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

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"