Hi,
I tried to round a all column into 2 decimals, but I keep getting the same mistake. So this is the code on the internet:
Sub rounding()
For Each cell In [X:X]
If cell = "" Then Exit Sub
cell.Value = WorksheetFunction.Round(cell.Value, 2)
Next cell
End Sub
But I keep getting the same error
What I want to do is actually select the from X2 to "where is values" down and then rounding to 2 decimals, copying and paste on the W column. But if you would guide at least why there is this error, eventually I would figure the rest of the steps out.
Thanks for helping!
I tried to round a all column into 2 decimals, but I keep getting the same mistake. So this is the code on the internet:
Sub rounding()
For Each cell In [X:X]
If cell = "" Then Exit Sub
cell.Value = WorksheetFunction.Round(cell.Value, 2)
Next cell
End Sub
But I keep getting the same error
Type mismatch (Error 13)
What I want to do is actually select the from X2 to "where is values" down and then rounding to 2 decimals, copying and paste on the W column. But if you would guide at least why there is this error, eventually I would figure the rest of the steps out.
Thanks for helping!