Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
How about making a macro with code similar to the following:
Cells.Find(What:="rerun", After:=ActiveCell, LookIn:=xlFormulas, LookAt _ :=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _ False, SearchFormat:=False).Activate Cells.Select Selection.Copy Sheets("Sheet2").Select ActiveSheet.Paste You could incorporate this code with an OnError command that if the text "rerun" is not found, the data is not copied. Hope this helps -Chad " wrote: I am looking for a way to copy all the records from one spreadsheet to another if a particular word (i.e. "rerun") is found anywhere in the spreadsheet. What function would I use? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Searching for #N/A | Excel Worksheet Functions | |||
Searching, matching then searching another list based on the match | Excel Discussion (Misc queries) | |||
Searching for "?" | New Users to Excel | |||
searching | Excel Worksheet Functions | |||
Searching the first name only | Excel Discussion (Misc queries) |