Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Use the following code and see if it helps...
Sub Button1_Click() Dim fnd As String fnd = InputBox("What do u want to Find?") Range("A1").Select Cells.Find(What:=fnd, After:=ActiveCell, LookIn:=xlFormulas, LookAt _ :=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _ False).Activate ActiveCell.Offset(1, 0).Activate Range(Selection, Selection.End(xlDown)).Select Selection.EntireRow.Select Selection.Copy End Sub ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Search for a data in excel sheet | Excel Discussion (Misc queries) | |||
Search for rows in one sheet and copy into another sheet based on customer id | Excel Worksheet Functions | |||
Is it possible to combine MATCH & IF to search an excel sheet | Excel Worksheet Functions | |||
how do i search an excel sheet for links to another spreadhseet? | Excel Discussion (Misc queries) | |||
Search For Data In An Excel Sheet Thru Code | Excel Programming |