I get sent a spreadsheet weekly, and for various reasons beyond my control some columns come out as text stored as numbers rather than numbers. I need to convert them to numbers for stuff that happens with them later in the code.
I am converting them to numbers at the moment by doing this:
Dim rng As Range
For Each rng In Range("A:D").Columns
rng.TextToColumns
Next rng
Is there a better (i.e. more efficient) way of doing this?
I played around with NumberFormat and it didn't seem to work.
Thanks in advance (and apologies if I have missed a solution already here - I did a search and didn't find it).