Provence Vintage
XLDnaute Occasionnel
Bonjour le Forum,
J'ai le code suivant qui me permet après saisie d'appliquer le format monétaire sur ma TextBox:
#Private Sub Tbx5_afterupdate()
Dim CHN As String, Start As Integer
CHN = Tbx5.Text
Start = Tbx5.SelStart
If CHN <> "" Then
If Right(CHN, 1) <> "€" Then
CHN = RTrim(CHN) & " €"
Tbx5.Text = CHN
Tbx5.SelStart = Start
End If
End If
End Sub#
je cherche, si rien n'est saisi, après tabul à ce que O€ soit inscrit dans la TextBox,
qui à une piste!?
ps: j'ai essayé en rajoutant
#If Tbx5.Value Is Nothing Then
Tbx5 = "0"
End If#
dans mon code, mais ça ne fonctionne pas!
merci🙂
J'ai le code suivant qui me permet après saisie d'appliquer le format monétaire sur ma TextBox:
#Private Sub Tbx5_afterupdate()
Dim CHN As String, Start As Integer
CHN = Tbx5.Text
Start = Tbx5.SelStart
If CHN <> "" Then
If Right(CHN, 1) <> "€" Then
CHN = RTrim(CHN) & " €"
Tbx5.Text = CHN
Tbx5.SelStart = Start
End If
End If
End Sub#
je cherche, si rien n'est saisi, après tabul à ce que O€ soit inscrit dans la TextBox,
qui à une piste!?
ps: j'ai essayé en rajoutant
#If Tbx5.Value Is Nothing Then
Tbx5 = "0"
End If#
dans mon code, mais ça ne fonctionne pas!
merci🙂