Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel 2007 and FormatConditions code
Message
De
24/02/2009 11:17:34
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01383370
Message ID:
01383762
Vues:
57
This message has been marked as the solution to the initial question of the thread.
Naomi,

Your problem is the format you are saving the spreadsheet in:
loExcel.ActiveWorkbook.SAVEAS(tcXLSFileName, 39)
39 = Excel5, I don't know if Excel5 supported conditional formatting but Excel 2007 clearly thinks is does not as if you check the file before this line then your conditional formatting is there. Imemdiately afterwards there is no conditional formatting anywhere in the workbook.

If you use Excel8 format (56) , then conditional formatting is retained.
loExcel.ActiveWorkbook.SAVEAS(tcXLSFileName, 56)
Gary.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform