Hello jamie.c.
Ive been trying to figure this out for you, Though i need sleep so ill post what i have.
1st though was to go through the Interior.ColorIndex But that didnt work
Sub CopyColorRow()
Dim xRange, PasteRow As Long
Dim cell As Range
With ThisWorkbook
xRange = Sheets("Sheet1").Range("A65536").End(xlUp)
For Each cell In Range("A4:A" & xRange)
If cell.Offset(0, 7).Interior.ColorIndex = 255 Then
Range(cell.Address & ":" & cell.Offset(0, 7).Address).Copy
Sheets("Sheet2").Range("A65536").End(xlUp).Offset(1, 0).PasteSpecial (xlAll)
End If
If cell.Offset(0, 7).Interior.ColorIndex = 6 Then
Range(cell.Address & ":" & cell.Offset(0, 7).Address).Copy
Sheets("Sheet3").Range("A65536").End(xlUp).Offset(1, 0).PasteSpecial (xlAll)
End If
Next cell
End With
End Sub
I then realised that the cell Interior.ColorIndex didnt change on conditiona formatting.
So i tryed to go the same route as what is being done in the condition formatting
Sub CopyColorRowCondition()
Dim xRange, PasteRow As Long
Dim cell As Range
With ThisWorkbook
xRange = Sheets("Sheet1").Range("A65536").End(xlUp)
For Each cell In Range("A4:A" & xRange)
If cell.Offset(0, 7).Value <= Date Then
Range(cell.Address & ":" & cell.Offset(0, 7).Address).Copy
Sheets("Sheet2").Range("A65536").End(xlUp).Offset(1, 0).PasteSpecial (xlAll)
End If
If cell.Offset(0, 7).Value <= Date + 28 And cell.Offset(0, 7).Value >= Date Then
Range(cell.Address & ":" & cell.Offset(0, 7).Address).Copy
Sheets("Sheet3").Range("A65536").End(xlUp).Offset(1, 0).PasteSpecial (xlAll)
End If
Next cell
End With
End Sub
This seams to be real close to getting you to where it works.
Hope this helps.
Bookmarks