[font=Verdana][color=darkblue]Option[/color] [color=darkblue]Explicit[/color]
[color=darkblue]Sub[/color] test()
[color=darkblue]Dim[/color] wksSource [color=darkblue]As[/color] Worksheet
[color=darkblue]Dim[/color] MyDestSheets [color=darkblue]As[/color] [color=darkblue]Variant[/color]
[color=darkblue]Dim[/color] MyValues [color=darkblue]As[/color] [color=darkblue]Variant[/color]
[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]Dim[/color] i [color=darkblue]As[/color] [color=darkblue]Long[/color]
Application.ScreenUpdating = [color=darkblue]False[/color]
MyDestSheets = Array("LZSB", "PRBB")
MyValues = Array("LZS", "PRB")
[color=darkblue]Set[/color] wksSource = Worksheets("Planner")
[color=darkblue]With[/color] wksSource
[color=darkblue]With[/color] .Range("F1", .Cells(.Rows.Count, "F").End(xlUp))
[color=darkblue]For[/color] i = [color=darkblue]LBound[/color](MyValues) [color=darkblue]To[/color] [color=darkblue]UBound[/color](MyValues)
[color=darkblue]Set[/color] Cell = .Find(what:=MyValues(i), 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]With[/color] Worksheets(MyDestSheets(i))
FoundCells.Copy
.Range("F1").PasteSpecial xlPasteValues
FoundCells.Offset(0, -1).Copy
.Range("E1").PasteSpecial xlPasteValues
FoundCells.Offset(0, -2).Copy
.Range("D1").PasteSpecial xlPasteValues
FoundCells.Offset(0, -3).Copy
.Range("C1").PasteSpecial xlPasteValues
FoundCells.Offset(0, -4).Copy
.Range("B1").PasteSpecial xlPasteValues
[color=darkblue]End[/color] [color=darkblue]With[/color]
[color=darkblue]Set[/color] FoundCells = [color=darkblue]Nothing[/color]
[color=darkblue]End[/color] [color=darkblue]If[/color]
[color=darkblue]Next[/color] i
[color=darkblue]End[/color] [color=darkblue]With[/color]
[color=darkblue]End[/color] [color=darkblue]With[/color]
Application.CutCopyMode = [color=darkblue]False[/color]
Application.ScreenUpdating = [color=darkblue]True[/color]
MsgBox "Completed...", vbInformation
[color=darkblue]End[/color] [color=darkblue]Sub[/color]
[/font]