maval
XLDnaute Barbatruc
Bonjour
Je cherche a modifier mon TextBox et j'ai mis comme code ceci mais a toute évidence il doit y avoir une erreur au niveau de "Selection.Font"
Je vous remercie d'avance
Je cherche a modifier mon TextBox et j'ai mis comme code ceci mais a toute évidence il doit y avoir une erreur au niveau de "Selection.Font"
Code:
Private Sub TextBox5_Change()
If TextBox5 = "DCD" Then
TextBox5.ForeColor = RGB(255, 0, 0)
With Selection.Font
.Name = "Arial"
.Size = 20
.Bold = True
End With
End If
End Sub
Je vous remercie d'avance
Dernière édition: