Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting Xslx to Xls
Message
From
27/10/2016 10:23:03
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01642393
Message ID:
01642394
Views:
65
>I am converting xslx to xls
>
>This is my code
>
>oXL = CreateObject("Excel.Application")
>oXL.Workbooks.Open("c:\citisprint\attachxls\latest.xlsx")
>oXL.ActiveWorkbook.Saveas("c:\citisprint\attachxls\latest.xls", 39)
>
>Conversion works fine except that the date in the xslsx file of 24/10/16 gets converted to 42667 in the xls file
>
>Any ideas
>
>Colin

In Excel, {^2016-10-24} is just the representation, as a date, of the number 42667. Dates are numbers, as offsets from {^1899-12-30}. That is, if you add {^1899-12-30} to the number in the cell, you'll get the date displayed when the cell is formatted as a date.
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform