Sub proc_trouve_le_mot()
' Liste des nom dans un tableau "mémoire"
' correspond au cellule excel
' corespondance a avec la plage excel
' msgbox t(1,1) 1 = lignes est 1 Colonne (en mémoire machine)
' msgbox t(2,1) 2 = lignes est 1 Colonne (en mémoire machine)
' msgbox t(3,1) 3 = lignes est 1 Colonne (en mémoire machine)
Dim t()
t = Range("O1:O3")
Dim Maplage As Range
Dim UneCellule As Range
'MsgBox UneCellule
Set Maplage = Range("c4:k33")
Maplage.Interior.ColorIndex = xlNone
' Choix de vos couleur ici se sont des exemples comme : (ColorIndex = 5)
' a vous d'adapter
For Each UneCellule In Maplage
If UneCellule = t(1, 1) Then
UneCellule.Interior.ColorIndex = 5
ElseIf UneCellule = t(2, 1) Then
UneCellule.Interior.ColorIndex = 3
ElseIf UneCellule = t(3, 1) Then
UneCellule.Interior.ColorIndex = 6
End If
Next UneCellule
End Sub