T
Tim
I appologize for the re-post, I should have put this here originally...
I'm filling an excel (2003) worksheet using the 'Excel Files' DSN through
ODBC. I can get the data into the spread sheet no problem, but some of the
data cells have the little green info triangle that says 'The number in this
cell is formatted as text...'. When this happens, the formats I applied to
the column (currency, percent, etc) don't work.
I've made sure there are no extra characters during the input, I've used
Val() and CDbl() during the input, and I've tried a couple other obvious
things but some columns just won't accept the number as a number. Some do
and some don't. Even more odd, if I just go into the 'fx()' text area at
the top and then click an any cell (without typing anything), the number
converts.
How can I get Excel to take my number as a number?
Sample:
sDataInsert = "insert into [data$](f1, f2, f3) values (CDbl(3500.92),
Val(3999.99), 0.03034)"
Call oFileConnection.Execute(sDataInsert )
I'm filling an excel (2003) worksheet using the 'Excel Files' DSN through
ODBC. I can get the data into the spread sheet no problem, but some of the
data cells have the little green info triangle that says 'The number in this
cell is formatted as text...'. When this happens, the formats I applied to
the column (currency, percent, etc) don't work.
I've made sure there are no extra characters during the input, I've used
Val() and CDbl() during the input, and I've tried a couple other obvious
things but some columns just won't accept the number as a number. Some do
and some don't. Even more odd, if I just go into the 'fx()' text area at
the top and then click an any cell (without typing anything), the number
converts.
How can I get Excel to take my number as a number?
Sample:
sDataInsert = "insert into [data$](f1, f2, f3) values (CDbl(3500.92),
Val(3999.99), 0.03034)"
Call oFileConnection.Execute(sDataInsert )