Se hai nella form diversi Txt potresti usare una funzione, così:Ciao.codice:Public Function Ctr(strTesto As String) On Error Resume Next If Len(strTesto) < 2 Then Ctr = CStr("0" & strTesto) Else: Ctr = (strTesto) End If End Function ----------------------------------------- Private Sub Command1_Click() Text2.Text = Ctr(Text1.Text) End Sub