Hello,
I am not sure what formula you are using, however to change the background color of a cell for a given condition you may use SetConditionalFormat( ) method.Below is the code snippet that will change the back color of the cell(1,1) if the value is less than zero,
Dim styleRed As New FarPoint.Win.Spread.NamedStyle()
styleRed.BackColor = Color.Red
FpSpread1.ActiveSheet.SetConditionalFormat(1, 1, styleRed, FarPoint.Win.Spread.ComparisonOperator.LessThan, "0")
I hope it will help you.
Regards,
Deepak Sharma
GrapeCity FarPoint