Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Excel Automation - ConditionalFormat
Message
From
19/02/2004 11:55:03
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Excel Automation - ConditionalFormat
Miscellaneous
Thread ID:
00878775
Message ID:
00878775
Views:
65
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.
Next
Reply
Map
View

Click here to load this message in the networking platform