Bonsoir,
Bien que ton onglet se nomme "Map", tu ne peux pas la désigner comme "Objet"
C'est soit "Sheets("Map")", soit par le CodeName "Feuil3"
Donc, modifie ainsi :
If UBound(SP) = 2 Then Feuil3.Shapes(Rg.Value).Fill.ForeColor.RGB = RGB(SP(0), SP(1), SP(2))
ou comme ceci :
If UBound(SP) = 2 Then Sheets("Map").Shapes(Rg.Value).Fill.ForeColor.RGB = RGB(SP(0), SP(1), SP(2))
Pour remplacer :
If UBound(SP) = 2 Then Map.Shapes(Rg.Value).Fill.ForeColor.RGB = RGB(SP(0), SP(1), SP(2))
qui te provoquait cette erreur "424"
PS, un merci suffira, nul besoin d'une reconnaissance jusqu'à la fin de ta mort....
Bonne soirée