goss
Active Member
- Joined
- Feb 2, 2004
- Messages
- 372
Hi all,
Using Excel 2010
I would like to coerce all values in a column to strings (text) as some records are numbers and some are mix of number and alpha characters
I would like them all as strings before export to .csv
Here is my snippet which does not appear to work
Numbers are still number and are naturally right-justified and/or formatted as 5.51538E+11
Using Excel 2010
I would like to coerce all values in a column to strings (text) as some records are numbers and some are mix of number and alpha characters
I would like them all as strings before export to .csv
Here is my snippet which does not appear to work
Numbers are still number and are naturally right-justified and/or formatted as 5.51538E+11
Code:
With ws
Set rng = .Range("H1:H" & lngRows)
For Each C in rng
C.Value = CStr(C.Value)
Next C
End With