Bonjour,
Avant tout, je sais qu'il y a différent post sur ce sujet mais malgré toutes les solutions qui y sont proposées je ne trouve pas la solution de mon problème.
J'aimerai appliquer ma macro à toutes mes feuilles (Nombre de semaines d'une année). Mes feuilles se nomment de façon suivante : Sem 01 - Sem 02 - ... - Sem 53.
Voici la macro :
Private Sub Worksheet_Change(ByVal Target As Range)
Chaine = Target.Value
With Target.Interior
If InStr(Chaine, "AUBERT.F") Then .ColorIndex = 3
If InStr(Chaine, "COUILLEBAULT.C") Then .ColorIndex = 3
If InStr(Chaine, "HELARD.C") Then .ColorIndex = 3
If InStr(Chaine, "POULAIN.G") Then .ColorIndex = 3
If InStr(Chaine, "VASSEUR.D") Then .ColorIndex = 3
If InStr(Chaine, "GIRARD.J") Then .ColorIndex = 3
If InStr(Chaine, "AUBERT.C") Then .ColorIndex = 44
If InStr(Chaine, "BLENET.L") Then .ColorIndex = 44
If InStr(Chaine, "BOLON.A") Then .ColorIndex = 44
If InStr(Chaine, "DELCOURT.D") Then .ColorIndex = 44
If InStr(Chaine, "GAUTHIER.M") Then .ColorIndex = 44
If InStr(Chaine, "GUILLON") Then .ColorIndex = 44
If InStr(Chaine, "JOULAIN.E") Then .ColorIndex = 44
If InStr(Chaine, "MORLHON.J") Then .ColorIndex = 44
If InStr(Chaine, "PINHEIRO.P") Then .ColorIndex = 44
If InStr(Chaine, "SAMAOU") Then .ColorIndex = 44
If InStr(Chaine, "TOUCHELET.T") Then .ColorIndex = 44
If InStr(Chaine, "VALOGNES.V") Then .ColorIndex = 44
If InStr(Chaine, "LEVEQUE.Y") Then .ColorIndex = 4
If InStr(Chaine, "BOULAY.J") Then .ColorIndex = 4
If InStr(Chaine, "COTTIER.M") Then .ColorIndex = 4
If InStr(Chaine, "COUILLEBAULT.M") Then .ColorIndex = 4
If InStr(Chaine, "DANIEL.H") Then .ColorIndex = 4
If InStr(Chaine, "JUTTIN.L") Then .ColorIndex = 4
If InStr(Chaine, "JUTTIN.N") Then .ColorIndex = 4
If InStr(Chaine, "POKUNTKE.P") Then .ColorIndex = 4
If InStr(Chaine, "REMER.N") Then .ColorIndex = 4
If InStr(Chaine, "SIMMONET.D") Then .ColorIndex = 4
If InStr(Chaine, "THISSELIN.Y") Then .ColorIndex = 4
If InStr(Chaine, "VIDULICH.M") Then .ColorIndex = 4
If InStr(Chaine, "GAVITELLI") Then .ColorIndex = 4
End With
End Sub
En vous remerciant d'avance.