View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] andrei.kazakov@fieldforce.com is offline
external usenet poster
 
Posts: 1
Default CopyFromRecordset text to numeric

Hi,
how to recalculate text cell value after formating cell to numer?
....
cmd.CommandText ="select money(text value), money2(text value),
money3(text value) from money"
....
xlWs.Cells(1, 1).CopyFromRecordset(rs)
xlWs.Columns("A:A").NumberFormat = "0.00"
....

After executing values at cell looking like text(1.89898) but cell
formating is numer. After clicking the cell value changing to
numer(1.9) and you can count total money values. Is the is any way to
recalculate/change cells to be number?
--D.