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 using a simple iterative linear search.
'Declaration
Function GoalSeek( _
ByVal As System.Double, _
ByVal As IRange _
) As System.Boolean
'Usage
Dim instance As IRange
Dim goal As System.Double
Dim changingCell As IRange
Dim value As System.Boolean
value = instance.GoalSeek(goal, changingCell)
System.bool GoalSeek(
System.double ,
IRange
)
function GoalSeek(
: System.Double;
: IRange
): System.Boolean;
function GoalSeek(
: System.double,
: IRange
) : System.boolean;
System.bool GoalSeek(
System.double ,
IRange*
)
System.bool GoalSeek(
System.double ,
IRange^
)
Parameters
- goal
- Specifies the desired goal from the calculated result of the formula in the cell represented by this IRange.
- changingCell
- Specifies the cell to change.
Return Value
true if the desired goal is achieved or false if the goal is not achieved.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2