Hi
Im trying to run the following code but get getting an error - it only started happening today so im guessing its as a result of an update to MS Office.
Any ideas?
Im trying to run the following code but get getting an error - it only started happening today so im guessing its as a result of an update to MS Office.
Code:
Sub ConvertTextNumberToNumber()
For Each WS In Sheets
On Error Resume Next
For Each r In WS.UsedRange.SpecialCells(xlCellTypeConstants)
If IsNumeric(r) Then r.Value = Val(r.Value)
Next
Next
End Sub
Any ideas?