Hi all,
Can somebody tell me what is wrong with this code?
I can see the debug is pointing at the line:
But, what is wrong with that line?
Can somebody tell me what is wrong with this code?
Code:
Sub round_formulas()
Dim c As Range
Dim f As String
For Each c In ActiveSheet.Selection
f = c.Formula
c.Formula = "=ROUND(" & Right(f, Len(f) - 1) & ",1)"
Next c
End Sub
I can see the debug is pointing at the line:
Code:
For Each c In ActiveSheet.Selection
But, what is wrong with that line?