Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("AZ12:BJ14")) Is Nothing Then Exit Sub
Select Case (Target.Value)
Case "1": Target.Interior.ColorIndex = 3
Target.Font.ColorIndex = 3
Case "2": Target.Interior.ColorIndex = 4
Target.Font.ColorIndex = 4
Case "3": Target.Interior.ColorIndex = 5
Target.Font.ColorIndex = 5
Case "4": Target.Interior.ColorIndex = 6
Target.Font.ColorIndex = 6
Case "5": Target.Interior.ColorIndex = 7
Target.Font.ColorIndex = 7
Case "6": Target.Interior.ColorIndex = 8
Target.Font.ColorIndex = 8
Case "7": Target.Interior.ColorIndex = 9
Target.Font.ColorIndex = 9
Case "8": Target.Interior.ColorIndex = 31
Target.Font.ColorIndex = 31
Case "9": Target.Interior.ColorIndex = 44
Target.Font.ColorIndex = 44
Case "10": Target.Interior.ColorIndex = 43
Target.Font.ColorIndex = 43
Case "11": Target.Interior.ColorIndex = 12
Target.Font.ColorIndex = 12
Case "12": Target.Interior.ColorIndex = 39
Target.Font.ColorIndex = 39
Case "": Target.Interior.ColorIndex = xlNone
End Select
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, [A1]) Is Nothing And Target.Count = 1 Then
nombre = Array("8", "10", "12", "14", "16", "18", "20", "22", "24")
Range("AZ19:AZ" & Val(nombre([A1] - 4))).Copy Destination:=Range("F15")
End If
End Sub