Option Explicit
'Bouton pour changer la couleur du texte
Sub BoutonChangerCouleurTexte()
ActiveSheet.Unprotect Password:="."
Dim Coul
Coul = ActiveCell.Font.Color
Select Case Coul
Case vbBlack
ActiveCell.Font.Color = vbRed
Shapes.Range(Array("Rectangle 1")).TextFrame2.TextRange.Characters.Text = "R"
Shapes.Range(Array("Rectangle 1")).TextFrame2.TextRange.Characters(1, 1).Font.Fill.ForeColor.RGB = vbRed
Case vbRed
ActiveCell.Font.Color = vbGreen
Shapes.Range(Array("Rectangle 1")).TextFrame2.TextRange.Characters.Text = "V"
Shapes.Range(Array("Rectangle 1")).TextFrame2.TextRange.Characters(1, 1).Font.Fill.ForeColor.RGB = vbGreen
Case vbGreen
ActiveCell.Font.Color = vbBlue
Shapes.Range(Array("Rectangle 1")).TextFrame2.TextRange.Characters.Text = "B"
Shapes.Range(Array("Rectangle 1")).TextFrame2.TextRange.Characters(1, 1).Font.Fill.ForeColor.RGB = vbBlue
Case vbBlue
ActiveCell.Font.Color = vbBlack
Shapes.Range(Array("Rectangle 1")).TextFrame2.TextRange.Characters.Text = "N"
Shapes.Range(Array("Rectangle 1")).TextFrame2.TextRange.Characters(1, 1).Font.Fill.ForeColor.RGB = vbBlack
End Select
ActiveSheet.Protect Password:="."
End Sub