Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA: Function Help... Search?/Match?/Vlookup?/


Im trying to look up a specific SSN from Column F. The End-User wil
input a Customer SSN that they are looking for into a text bo
(txtCustSSN).

If the SSN is found, I want to return the customers Lname, Fname
Info1, and Info2 back to my customized form. If the SSN is not found
want to return msgbox "Customer Data not Found".

_Data:_
Column A = Date
Column B = Type
Column C = Lname
Column D = Fname
Column E = Mname
Column F = SSN
Column G = Info1
Column H = Info2

ANY IDEAS ON HOW TO SEARCH A COLUMN OF OR 300+ SSN'S TO \"MATCH\" TH
SSN THAT THE END-USER INPUTS INTO THE TEXT BOX TXTCUSTSSN

Ive been having a really hard time with this, please respond with a
much info as you can.

Thank you

--
Mcastee
-----------------------------------------------------------------------
Mcasteel's Profile: http://www.excelforum.com/member.php...fo&userid=1569
View this thread: http://www.excelforum.com/showthread.php?threadid=27316

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Function Help... Search?/Match?/Vlookup?/

Private Sub CommandButton1_Click()
Dim rng as Range
With Worksheets(1)
set rng = .Columns(6).Find( _
Textbox1.Text)
if not rng is nothing then
txtLname.Text = .Cells(rng.row,3).Value
txtFname.Text = .Cells(rng.row,4).Value
' as so forth
Else
msgbox "Customer Data not found"
End if
End With
End Sub

--
Regards,
Tom Ogilvy

"Mcasteel" wrote in message
...

Im trying to look up a specific SSN from Column F. The End-User will
input a Customer SSN that they are looking for into a text box
(txtCustSSN).

If the SSN is found, I want to return the customers Lname, Fname,
Info1, and Info2 back to my customized form. If the SSN is not found I
want to return msgbox "Customer Data not Found".

_Data:_
Column A = Date
Column B = Type
Column C = Lname
Column D = Fname
Column E = Mname
Column F = SSN
Column G = Info1
Column H = Info2

ANY IDEAS ON HOW TO SEARCH A COLUMN OF OR 300+ SSN'S TO \"MATCH\" THE
SSN THAT THE END-USER INPUTS INTO THE TEXT BOX TXTCUSTSSN?

Ive been having a really hard time with this, please respond with as
much info as you can.

Thank you!


--
Mcasteel
------------------------------------------------------------------------
Mcasteel's Profile:

http://www.excelforum.com/member.php...o&userid=15698
View this thread: http://www.excelforum.com/showthread...hreadid=273166



  #3   Report Post  
Posted to microsoft.public.excel.programming
MJ MJ is offline
external usenet poster
 
Posts: 3
Default VBA: Function Help... Search?/Match?/Vlookup?/

Can you post the solution? I am trying to do something similar...
look at a value in a cell and see if it already exists in another
column.

Thanks!



Mcasteel wrote in message ...
Im trying to look up a specific SSN from Column F. The End-User will
input a Customer SSN that they are looking for into a text box
(txtCustSSN).

If the SSN is found, I want to return the customers Lname, Fname,
Info1, and Info2 back to my customized form. If the SSN is not found I
want to return msgbox "Customer Data not Found".

_Data:_
Column A = Date
Column B = Type
Column C = Lname
Column D = Fname
Column E = Mname
Column F = SSN
Column G = Info1
Column H = Info2

ANY IDEAS ON HOW TO SEARCH A COLUMN OF OR 300+ SSN'S TO \"MATCH\" THE
SSN THAT THE END-USER INPUTS INTO THE TEXT BOX TXTCUSTSSN?

Ive been having a really hard time with this, please respond with as
much info as you can.

Thank you!

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
data filtering via vlookup or index/match/find or search withwildcard [email protected] Excel Worksheet Functions 10 April 29th 08 02:43 AM
VLOOKUP and MATCH w/ name search? LTUser54 Excel Worksheet Functions 2 May 22nd 06 04:41 PM
Match function...random search? Les Excel Worksheet Functions 10 July 28th 05 11:54 AM
Using Search with either vlookup or match and index jlowenstein Excel Worksheet Functions 1 July 22nd 05 03:18 AM
is there a way to search with vlookup to match more than 1 column puppy Excel Discussion (Misc queries) 7 June 30th 05 07:41 PM


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