Oct 11 2023 09:38 AM
Good morning,
While getting data to excel, numbers were stored as text on multiple worksheets. Is there a way to convert text to numbers in all worksheets?
Oct 11 2023 11:49 AM
SolutionA macro:
Sub ConvertTextToNumbers()
Dim wsh As Worksheet
Application.ScreenUpdating = False
For Each wsh In Worksheets
With wsh.UsedRange
.NumberFormat = "General"
.Value = .Value
End With
Next wsh
Application.ScreenUpdating = True
End Sub