[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IRange.GoalSeek

GoalSeek Method

GoalSeek(double, IRange)

Attempts to achieve the specified goal, from the calculated result of the formula in the cell represented by this IRange, by modifying the specified changingCell. If you know the result that you want from a formula, but are not sure what input value the formula needs to get that result, use the Goal Seek feature.

Declaration
bool GoalSeek(double goal, IRange changingCell)
Function GoalSeek(goal As Double, changingCell As IRange) As Boolean
Parameters
Type Name Description
double goal

Specifies the desired goal value.

IRange changingCell

Specifies the cell to change.

Returns
Type Description
bool

True if the desired result value is successfully found, otherwise False.