Option Explicit
Private Sub Worksheet_Activate()
Dim Rng As Range
Dim Area As Range
Dim Cell As Range
Sheets("Staff").Range("RangeNames451").Copy Range("b9")
Sheets("Staff").Range("RangeNames454").Copy Range("b101")
Set Rng = Range("WI451Data", "WI454Data")
For Each Area In Rng.Areas
For Each Cell In Area
Cell.Interior.ColorIndex = 0
Next Cell
Next Area
For Each Area In Rng.Areas
For Each Cell In Area
If (Cell.Value + Range("Duration").Value) > Range("Now).value And Cell.Value + Range("Duration").value < Range("OneMonth").Value Then
Cell.Interior.ColorIndex = 44
Else
If Cell.Value + Range("Duration").Value < Range("Now").Value And Cell.Value > 0 Then
Cell.Interior.ColorIndex = 38
End If
End If
Next Cell
Next Area
End Sub