Try pasting the following copy into the specified sheets in the VBA editor (Alt F11)
Into Sheet2(Good)
Private Sub Worksheet_Activate()
Cells.Clear
Sheets("Log").Rows(1).Copy Destination:=Rows(1)
For N = 2 To Sheets("Log").UsedRange.Rows.Count
If Sheets("Log").Cells(N, 6).Interior.ColorIndex = 35 Then
Sheets("Log").Rows(N).Copy Destination:=Rows(UsedRange.Rows.Count + 1)
End If
Next N
End Sub
Into Sheet3(Bad)
Private Sub Worksheet_Activate()
Cells.Clear
Sheets("Log").Rows(1).Copy Destination:=Rows(1)
For N = 2 To Sheets("Log").UsedRange.Rows.Count
If Sheets("Log").Cells(N, 6).Interior.ColorIndex = 38 Then
Sheets("Log").Rows(N).Copy Destination:=Rows(UsedRange.Rows.Count + 1)
End If
Next N
End Sub
The code works by regenerating the good and bad sheets every time that they are activated so that they are always in sync with the Log sheet.
Bookmarks