View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_6_] Bob Phillips[_6_] is offline
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.