Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting Xslx to Xls
Message
De
27/10/2016 10:23:03
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01642393
Message ID:
01642394
Vues:
66
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform