Is there any options better than InStr. It takes forever to do. All It is doing is looking in E for the phrase and then copying the rows and pasting.
Sub TopErrorACSI()![]()
Please Login or Register to view this content.
Dim i As Long, c As Range
Dim rng As Range
Set rng = Worksheets("PasteValues").Range("E:E")
For Each c In rng
If InStr(c, "ACSI") > 0 Then
c.Offset(1, 1).Copy
c.Worksheet.Paste Destination:=Worksheets("Top Errors").Range("B8")
c.Offset(3, 1).Copy
c.Worksheet.Paste Destination:=Worksheets("Top Errors").Range("B9")
c.Offset(4, 1).Copy
c.Worksheet.Paste Destination:=Worksheets("Top Errors").Range("B10")
c.Offset.Copy
c.Worksheet.Paste Destination:=Worksheets("Top Errors").Range("A7")
c.Offset(1, 0).Copy
c.Worksheet.Paste Destination:=Worksheets("Top Errors").Range("A8")
c.Offset(2, 0).Copy
c.Worksheet.Paste Destination:=Worksheets("Top Errors").Range("A9")
c.Offset(3, 0).Copy
c.Worksheet.Paste Destination:=Worksheets("Top Errors").Range("A10")
End If
Next c
End Sub
Bookmarks