Dim c As String
c = Sheets("Feuil1").Range("b2").Text
n=Application.substitute(c, ".", ",")
Sheets("Feuil1").Range("c2").Value = [COLOR=red]Csng[/COLOR](n)
End Sub
Dim c As String
Dim n As String
c = Sheets("Feuil1").Range("b2").Text
n = Application.Substitute(c, ".", ",")
Sheets("Feuil1").Range("c2").Value = CDbl(n)
Si tu avais écrit:Voila la prog que j'ai écrite pour modifier la cellule text b2 en nombre en c2
Sub macro1()
Dim n As Single
Dim c As String
c = Sheets("Feuil1").Range("b2").Text
Application.substitute(c, ".", ",") = n
Sheets("Feuil1").Range("c2").Value = n
End Sub