La coma decimal
Hola listeros, mi pregunta es como puedo hacer para cambiar la coma decimal por un punto. Ej:
123456,78 por este 123456.78
Gracias...
123456,78 por este 123456.78
Gracias...
Dim pos As Integer
pos=InStr(cad,",")
If pos<>0 Then
cad=Mid(cad,pos-1) & "." & Mid(cad,pos+1)
End If
pos=InStr(cad,",")
If pos<>0 Then
cad=Mid(cad,pos-1) & "." & Mid(cad,pos+1)
End If
Incorrecto!, el ejemplo anterior da error, asi debe ser escrito:
Dim Pos As Integer, Cad As String
Pos = InStr(Cad, ",")
If Pos <> 0 Then
Cad = Left(Cad, Pos - 1) & "." & Right(Cad, Len(Cad) - Pos)
End If
Dim Pos As Integer, Cad As String
Pos = InStr(Cad, ",")
If Pos <> 0 Then
Cad = Left(Cad, Pos - 1) & "." & Right(Cad, Len(Cad) - Pos)
End If
