[font=Verdana][color=darkblue]Option[/color] [color=darkblue]Explicit[/color]
[color=darkblue]Sub[/color] test1()
[color=darkblue]Dim[/color] wksSource [color=darkblue]As[/color] Worksheet
[color=darkblue]Dim[/color] wksDest [color=darkblue]As[/color] Worksheet
[color=darkblue]Dim[/color] Cell [color=darkblue]As[/color] Range
[color=darkblue]Dim[/color] FoundCells [color=darkblue]As[/color] Range
[color=darkblue]Dim[/color] FirstAddress [color=darkblue]As[/color] [color=darkblue]String[/color]
[color=darkblue]Set[/color] wksSource = Worksheets("Sheet1") [color=green]'change the source sheet name accordingly[/color]
[color=darkblue]Set[/color] wksDest = Worksheets("Sheet2") [color=green]'change the destination sheet name accordingly[/color]
[color=darkblue]With[/color] wksSource
[color=darkblue]With[/color] .Range("A1", .Cells(.Rows.Count, "A").End(xlUp))
[color=darkblue]Set[/color] Cell = .Find(what:="abc", LookIn:=xlValues, lookat:=xlPart, MatchCase:=False)
[color=darkblue]If[/color] [color=darkblue]Not[/color] Cell [color=darkblue]Is[/color] [color=darkblue]Nothing[/color] [color=darkblue]Then[/color]
FirstAddress = Cell.Address
[color=darkblue]Do[/color]
[color=darkblue]If[/color] FoundCells [color=darkblue]Is[/color] [color=darkblue]Nothing[/color] [color=darkblue]Then[/color]
[color=darkblue]Set[/color] FoundCells = Cell
[color=darkblue]Else[/color]
[color=darkblue]Set[/color] FoundCells = Union(FoundCells, Cell)
[color=darkblue]End[/color] [color=darkblue]If[/color]
[color=darkblue]Set[/color] Cell = .FindNext(Cell)
[color=darkblue]Loop[/color] [color=darkblue]While[/color] Cell.Address <> FirstAddress
[color=darkblue]Else[/color]
MsgBox "Search term was not found...", vbExclamation
[color=darkblue]Exit[/color] [color=darkblue]Sub[/color]
[color=darkblue]End[/color] [color=darkblue]If[/color]
[color=darkblue]End[/color] [color=darkblue]With[/color]
[color=darkblue]End[/color] [color=darkblue]With[/color]
FoundCells.Copy wksDest.Range("A1")
MsgBox "Completed...", vbInformation
[color=darkblue]End[/color] [color=darkblue]Sub[/color]
[/font]