ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   OpenText (https://www.excelbanter.com/excel-programming/353185-opentext.html)

Mike Archer

OpenText
 
Hello,
OpenText seems to always drop trailing zeros off of decimal numbers when
opening a text file.

My text file has decimal numbers that represent two dimensional sequetial
numbering, so 1.1 thru 1.10 will result in (2) 1.1's and no 1.10's
Is there a way to preserve the number in text format when using OpenText?
--
Thanks,
Mike

Jim Rech

OpenText
 
You have to import the fields in question as text. The data type argument
in the FieldInfo for each such field must be a 2, e.g. Array(1, 2), as you
can see by looking at help for the OpenText method.

--
Jim
"Mike Archer" wrote in message
...
| Hello,
| OpenText seems to always drop trailing zeros off of decimal numbers when
| opening a text file.
|
| My text file has decimal numbers that represent two dimensional sequetial
| numbering, so 1.1 thru 1.10 will result in (2) 1.1's and no 1.10's
| Is there a way to preserve the number in text format when using OpenText?
| --
| Thanks,
| Mike




All times are GMT +1. The time now is 12:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com