Bonjour,
Sub Macro1()
Dim datas, lig As Long, col As Long, tmp
datas = [A1:K3].Value
For lig = 1 To UBound(datas)
For col = 1 To UBound(datas, 2)
If IsNumeric(datas(lig, col)) Then
If datas(lig, col) - Int(datas(lig, col)) > 0 Then datas(lig, col) = datas(lig, col) * 1000
Else
If datas(lig, col) Like "*,*,*" Then
On Error GoTo suite
tmp = CDbl(Replace(datas(lig, col), ",", ""))
On Error GoTo 0
datas(lig, col) = tmp
suite:
ElseIf InStr(datas(lig, col), ",") > 0 Then
datas(lig, col) = Replace(datas(lig, col), ",", ".")
End If
End If
Next col
Next lig
[A12:K14] = datas
End Sub
j'ai supposé que tu n'y avais pas de texte de la forme "ab , cd"
eric