Hulk
XLDnaute Barbatruc
Hello,
J'ai réussi à faire un bout de code, mais je n'arrive pas le finir... Voyez plutôt
Il me dit "Icompatibilité de type"
J'avoue ne pas comprendre.
Au fait donc, si "Irlande" en C7 -> D7 et E7 = Interior.ColorIndex = 40
Merci pour votre aide, Hulk.
J'ai réussi à faire un bout de code, mais je n'arrive pas le finir... Voyez plutôt
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim i
Dim MaCell As Variant
i = "Irlande"
For Each MaCell In Range("C5:C10")
If MaCell.Value = i Then
MaCell.Interior.ColorIndex = 40
Cells.Offset(i, 4).Interior.ColorIndex = 40
Cells.Offset(i, 5).Interior.ColorIndex = 40
End If
Next
End Sub
Code:
Cells.Offset(i, 4).Interior.ColorIndex = 40
Cells.Offset(i, 5).Interior.ColorIndex = 40
Au fait donc, si "Irlande" en C7 -> D7 et E7 = Interior.ColorIndex = 40
Merci pour votre aide, Hulk.