Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Search data inside column

Just want implement search option in Excel workbook - to search for target
name in rows of the first column.
How to implement this better?

Regards

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Search data inside column

Would you like the Search to display the row number or select the cell?
--
Gary''s Student - gsnu200751


"SANTANDER" wrote:

Just want implement search option in Excel workbook - to search for target
name in rows of the first column.
How to implement this better?

Regards


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Search data inside column


"Gary''s Student" wrote in message
...
Would you like the Search to display the row number or select the cell?
--
Gary''s Student - gsnu200751


"SANTANDER" wrote:

Just want implement search option in Excel workbook - to search for
target
name in rows of the first column.
How to implement this better?

Regards

----------
I want that search move me to this row. The rest columns contain the other
relevant info located in the given row.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Search data inside column

Sub santander()
Dim s As String
s = Application.InputBox(prompt:="Enter Name to be found: ", Type:=2)
For i = 1 To Cells(Rows.Count, 1).End(xlUp).Row
If s = Cells(i, 1).Value Then
Application.Goto reference:=Cells(i, 1), scroll:=True
Exit Sub
End If
Next
MsgBox (s & " not found")
End Sub

--
Gary''s Student - gsnu200751
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
Search for a column based on the column header and then past data from it to another column in another workbook minkokiss Excel Programming 2 April 5th 07 01:12 AM
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look [email protected] Excel Programming 2 December 30th 06 06:23 PM
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look [email protected] Excel Discussion (Misc queries) 1 December 27th 06 05:47 PM
When I click inside the Search Results, nothing pops up. caramelmomma Excel Discussion (Misc queries) 3 September 20th 06 01:10 AM
A Search Engine inside Excel Spreadsheet Edgar Excel Discussion (Misc queries) 2 March 29th 06 04:51 PM


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