LittleMissRedK
New Member
- Joined
- Jul 14, 2012
- Messages
- 1
I need to go through all the cells in a sheet and check to see if they are numbers formatted as text and then reformat them as numbers if they are. Someone suggested this:
Sub Macro1()
For Each C In UsedRange.Cells
If IsNumeric(C) Then
C.Value = Val(C)
End If
Next
End Sub
But it doesn't run. Suggestions?
Sub Macro1()
For Each C In UsedRange.Cells
If IsNumeric(C) Then
C.Value = Val(C)
End If
Next
End Sub
But it doesn't run. Suggestions?