1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| Sub essai()
Dim x As Variant, r As Long, c As Long
With Application
.Calculation = xlCalculationManual: .ScreenUpdating = False: .DisplayAlerts = False
x = Range("a1", Cells(Rows.Count, "a").End(xlUp))
For r = 1 To UBound(x, 1)
For c = 1 To UBound(x, 2)
x(r, c) = Replace(x(r, c), " ", "")
x(r, c) = Replace(x(r, c), "", "")
x(r, c) = Replace(x(r, c), "*", "")
x(r, c) = Val(x(r, c))
'ou
x(r, c) = x(r, c) * 1
'pour le format idem x(r, c) = format(x(r, c) ect...)
Next c: Next r
Range("a1", Cells(Rows.Count, "a").End(xlUp)) = x
.Calculation = xlCalculationAutomatic: .ScreenUpdating = True: .DisplayAlerts = True
End With
End Sub |