Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excel Automation - ConditionalFormat
Message
De
19/02/2004 11:55:03
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Excel Automation - ConditionalFormat
Divers
Thread ID:
00878775
Message ID:
00878775
Vues:
66
Can anybody help me understand how to sucessfully access the ConditionalFormats collection from my VFP form?

I'm using the following code but I keep getting the error that "the parameter is incorrect".


lcLastCell = oExcel.ActiveCell.SpecialCells(xlLastCell).Address()
oExcel.Range("B9:" + lcLastCell).Select

oExcel.Selection.FormatConditions.Delete
oExcel.Selection.FormatConditions.Add(xlExpression,1,"=RIGHT($B9,5)='Total'")

On a CLEAR day you can see forever.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform