Hi
I am using the following code to convert text to numbers. However, it is rather slow. Any idea how to speed it up? Cheers!
(part of a longer code)
With ThisWorkbook.Sheets("Lager").Activate
Range("C3:C1000").Select
On Error Resume Next
For Each xCell In selection
If IsNumeric(xCell) = True And IsEmpty(xCell) = False Then
xCell.Value = CDec(xCell.Value)
Else
End If
Next xCell
End With
End Sub
I am using the following code to convert text to numbers. However, it is rather slow. Any idea how to speed it up? Cheers!
(part of a longer code)
With ThisWorkbook.Sheets("Lager").Activate
Range("C3:C1000").Select
On Error Resume Next
For Each xCell In selection
If IsNumeric(xCell) = True And IsEmpty(xCell) = False Then
xCell.Value = CDec(xCell.Value)
Else
End If
Next xCell
End With
End Sub