Hi
I have the following code, that works, except I would like the sc.Value(i) to be rounded to 1 decimal point
If sc.Values(i) >= Sheets("Targets").Range("B3").Value Then
sc.Points(i).Interior.ColorIndex = 4
I have tried
If Application.WorksheetFunction.RoundUp(sc.Values(i)) >= Sheets("Targets").Range("B3").Value Then
sc.Points(i).Interior.ColorIndex = 4
But I get a message Argument not optional. Is it not possible to round data series values?
Thnaks
L
I have the following code, that works, except I would like the sc.Value(i) to be rounded to 1 decimal point
If sc.Values(i) >= Sheets("Targets").Range("B3").Value Then
sc.Points(i).Interior.ColorIndex = 4
I have tried
If Application.WorksheetFunction.RoundUp(sc.Values(i)) >= Sheets("Targets").Range("B3").Value Then
sc.Points(i).Interior.ColorIndex = 4
But I get a message Argument not optional. Is it not possible to round data series values?
Thnaks
L