F
F. Michael Miller
I've got a spreadsheet that's being read as a datasource by an SQL statement
in a vb.net program. I have a field that contains data that can be numeric,
text, or mixed but is to be considered as text.
The problem is that a pure numeric value is being considered as numeric even
when the cell is formatted as text. If I edit the cell and put a single
quote (') at the beginning of the cell, the ' is not visible, the cell
displayes as text and imports correctly.
I need a way to do this in a macro. I've tried using ="'"&A2, but that
results in the ' being visible, and part of the data rather than just
forcing to text.
Any ideas?
in a vb.net program. I have a field that contains data that can be numeric,
text, or mixed but is to be considered as text.
The problem is that a pure numeric value is being considered as numeric even
when the cell is formatted as text. If I edit the cell and put a single
quote (') at the beginning of the cell, the ' is not visible, the cell
displayes as text and imports correctly.
I need a way to do this in a macro. I've tried using ="'"&A2, but that
results in the ' being visible, and part of the data rather than just
forcing to text.
Any ideas?