Hi Jimmy,
I read your post and tried some other approach :D
Works for me and my dutch excel.
Code is also capable of working with more then 2 decimals as the source, and more or less chars at the start.
Sub test()
For Each c In Range(ActiveCell.Offset(2, 0), ActiveCell.Offset(lastrow + 2, 0)).Cells
'Strip all dots
c.Value = Replace(c.Value, ".", "")
'determine number of decimals in original
IntDecimals = Len(c.Value) - InStr(c.Value, ",")
'Strip the rest of non-numeric values and comma's
b$ = ""
For i = 1 To Len(c.Value)
a$ = Mid(c.Value, i, 1)
If a$ Like "[0-9]" Then
b$ = b$ & a$
End If
Next i
c.Value = b$
'Devide by number of decimals
c.Value = c.Value / (10 ^ IntDecimals)
'Format Cells
c.NumberFormat = "#,##0.00"
Next c
End Sub
Bookmarks