Dim maVariable as currency maVariable=val(text1.text)
Dim res As Long ' Variable pour la recherche res = InStr(1, Text1, ".") ' effectue une recherche If res <> 0 Then Text1.SelStart = res - 1 ' possitionne la selection au point Text1.SelLength = 1 ' Selectionne qu'un seul carractères Text1.SelText = "," ' change la selection (le point) par la virgule End If Text1.SelStart = 0 Text1.SelLength = 0
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question