Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 5 And Target.Count = 1 Then
If Target.Column < Columns.Count Then Target.Offset(0, 1).Interior.ColorIndex = Target.Interior.ColorIndex
If Target.Column < Columns.Count Then Target.Offset(1, 2).Interior.ColorIndex = Target.Interior.ColorIndex
If Target.Column < Columns.Count Then Target.Offset(2, 3).Interior.ColorIndex = Target.Interior.ColorIndex
If Target.Column < Columns.Count Then Target.Offset(3, 4).Interior.ColorIndex = Target.Interior.ColorIndex
If Target.Column < Columns.Count Then Target.Offset(4, 5).Interior.ColorIndex = Target.Interior.ColorIndex
If Target.Column < Columns.Count Then Target.Offset(5, 6).Interior.ColorIndex = Target.Interior.ColorIndex
If Target.Column < Columns.Count Then Target.Offset(6, 7).Interior.ColorIndex = Target.Interior.ColorIndex
If Target.Column < Columns.Count Then Target.Offset(7, 8).Interior.ColorIndex = Target.Interior.ColorIndex
End If
If Target.Column = 29 And Target.Count = 1 Then
If Target.Column < Columns.Count Then Target.Offset(0, -1).Interior.ColorIndex = Target.Interior.ColorIndex
If Target.Column < Columns.Count Then Target.Offset(1, -2).Interior.ColorIndex = Target.Interior.ColorIndex
If Target.Column < Columns.Count Then Target.Offset(2, -3).Interior.ColorIndex = Target.Interior.ColorIndex
If Target.Column < Columns.Count Then Target.Offset(3, -4).Interior.ColorIndex = Target.Interior.ColorIndex
If Target.Column < Columns.Count Then Target.Offset(4, -5).Interior.ColorIndex = Target.Interior.ColorIndex
If Target.Column < Columns.Count Then Target.Offset(5, -6).Interior.ColorIndex = Target.Interior.ColorIndex
If Target.Column < Columns.Count Then Target.Offset(6, -7).Interior.ColorIndex = Target.Interior.ColorIndex
If Target.Column < Columns.Count Then Target.Offset(7, -8).Interior.ColorIndex = Target.Interior.ColorIndex
If Target.Column < Columns.Count Then Target.Offset(8, -9).Interior.ColorIndex = Target.Interior.ColorIndex
End If
End Sub