Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi. I need to use the find tool in Excel but only for one column. How I can do this? ![]() Private Sub cmdTSearch_Click() Dim DATA As String DATA = txtTicket.Text If txtTicket.Text = "" Then MsgBox ("Text Box Empty") Else With Worksheets("Info").Range("X4:X700") Set B = Cells.Find(What:=DATA, After:=ActiveCell, LookIn:=xlValues, LookAt:= _ xlWhole, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _ False, SearchFormat:=True) If B Is Nothing Then MsgBox ("Nothing Found") Else Range("X4:X500").Select Cells.Find(What:=DATA, After:=ActiveCell, LookIn:=xlValues, LookAt:= _ xlWhole, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _ False, SearchFormat:=True).Activate End If 'MsgBox ActiveWindow.RangeSelection.Address End With End If End Sub Thanks. Angel -- xrckiss ------------------------------------------------------------------------ xrckiss's Profile: http://www.excelforum.com/member.php...o&userid=33065 View this thread: http://www.excelforum.com/showthread...hreadid=528787 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do you find the version of the EXCEL program??? | Excel Discussion (Misc queries) | |||
Where I can find the program MegaStat in Excel 2003? | Excel Discussion (Misc queries) | |||
Program find a 5 minute gap | New Users to Excel | |||
How to find the correct program to download an .xls attachment | Excel Discussion (Misc queries) | |||
Can you find me a cash out program for a restaurant / bar? | Excel Discussion (Misc queries) |