When exporting fields (from dbf via a csv file) into Excel a serial number field (defined as C(25)) is displayed in Excel with scientific notation - if the serialno field exceeds a certain no of digits. I've tried formatting the cells as character (loCellRange.Numberformat = "@") during the Automation code in VFP but to no avail.
When this spreadsheet is read back to update the original dbf file, the serialno field is then changed from something like "12345678901234567890" to "1.234567890000E18".
I've tried prefixing the serialno data with a single quote mark just before it's read into excel (from the csv file) in the hope that excel would interpret the cell as character. This works, but the single quote mark is displayed in excel and is then imported back into the dbf file - thus changing the original data when it is not required.
Any suggestions as to how I can trick Excel into doing what I want? i.e. display the long string of digits as character and reading them back into VFP in the same format.
When this spreadsheet is read back to update the original dbf file, the serialno field is then changed from something like "12345678901234567890" to "1.234567890000E18".
I've tried prefixing the serialno data with a single quote mark just before it's read into excel (from the csv file) in the hope that excel would interpret the cell as character. This works, but the single quote mark is displayed in excel and is then imported back into the dbf file - thus changing the original data when it is not required.
Any suggestions as to how I can trick Excel into doing what I want? i.e. display the long string of digits as character and reading them back into VFP in the same format.