I have numbers that when imported appear as text in Col F
I have tried to write code to convert these into numbers, but the text for eg '1.00. '3.00 etc will not convert to 1.00, 3.00 etc
it would be appreciated if someone could assist me
I have tried to write code to convert these into numbers, but the text for eg '1.00. '3.00 etc will not convert to 1.00, 3.00 etc
Book1 | |||
---|---|---|---|
A | |||
1 | Stock Holding | ||
2 | 1.00 | ||
3 | 1.00 | ||
4 | 1.00 | ||
5 | 1.00 | ||
6 | 1.00 | ||
7 | 1.00 | ||
8 | 2.00 | ||
9 | 3.00 | ||
10 | 1.00 | ||
11 | 1.00 | ||
12 | 2.00 | ||
13 | 1.00 | ||
Sheet3 |
Code:
Sub convertTextToNumbers ()
with Sheets(3)
. Range("F:F")
.NumberFormat = "General"
.Value = .Value
End With
End Sub
it would be appreciated if someone could assist me
Last edited: