IRange.GoalSeek Method

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function GoalSeek ( _
    Goal As Object, _
    ChangingCell As Range _
) As Boolean
'Usage
Dim instance As IRange
Dim Goal As Object
Dim ChangingCell As Range
Dim returnValue As Boolean

returnValue = instance.GoalSeek(Goal, _
    ChangingCell)
bool GoalSeek(
    Object Goal,
    Range ChangingCell
)

Parameters

Return Value

Type: System.Boolean

See Also

Reference

IRange Interface

IRange Members

Microsoft.Office.Interop.Excel Namespace