Salut le forum
Une façon de le faire en considérant que ta cellule est déjà en taille 14
Sub Démo()
Dim Xxxx As String
Xxxx = InputBox("Inscrire ici un prénom")
With Range("A2")
.Value = "Décompte " & Xxxx & " (Etat le " & Date & " à " & Format(Time, "hh:mm") & ")"
.Characters(Start:=Len(Xxxx) + 11).Font.Size = 10
End With
End Sub
Pour prévoir le coup
Sub Démo()
Dim Xxxx As String
Xxxx = InputBox("Inscrire ici un prénom")
With Range("A2")
.Value = "Décompte " & Xxxx & " (Etat le " & Date & " à " & Format(Time, "hh:mm") & ")"
.Characters(Length:=Len(Xxxx) + 9).Font.Size = 14
.Characters(Start:=Len(Xxxx) + 11).Font.Size = 10
End With
End Sub
Mytå