Option Explicit
Sub Zone_de_texte_couleur_adapter()
With ActiveSheet.Shapes("TextBox 1")
If .TextFrame2.TextRange.Characters.Text >= 45 Then .Fill.ForeColor.RGB = RGB(255, 0, 0) Else .Fill.ForeColor.RGB = RGB(146, 208, 80)
End With
With ActiveSheet.Shapes("TextBox 2")
If .TextFrame2.TextRange.Characters.Text >= 45 Then .Fill.ForeColor.RGB = RGB(255, 0, 0) Else .Fill.ForeColor.RGB = RGB(146, 208, 80)
End With
End Sub