Spread Windows Forms 17
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / SpreadView Class / GoalSeek Method
Sheet index of cell that contains value to adjust
Row index of cell that contains value to adjust
Column index of cell that contains value to adjust
Sheet index of cell that contains formula
Row index of cell that contains formula
Column index of cell that contains formula
Formula result you wish to achieve


In This Topic
    GoalSeek Method (SpreadView)
    In This Topic
    Attempts to find a value for one cell that will produce the desired formula result in another cell.
    Syntax
    'Declaration
     
    
    Public Function GoalSeek( _
       ByVal variableSheet As Integer, _
       ByVal variableRow As Integer, _
       ByVal variableColumn As Integer, _
       ByVal formulaSheet As Integer, _
       ByVal formulaRow As Integer, _
       ByVal formulaColumn As Integer, _
       ByVal desiredResult As Double _
    ) As Boolean
    'Usage
     
    
    Dim instance As SpreadView
    Dim variableSheet As Integer
    Dim variableRow As Integer
    Dim variableColumn As Integer
    Dim formulaSheet As Integer
    Dim formulaRow As Integer
    Dim formulaColumn As Integer
    Dim desiredResult As Double
    Dim value As Boolean
     
    value = instance.GoalSeek(variableSheet, variableRow, variableColumn, formulaSheet, formulaRow, formulaColumn, desiredResult)

    Parameters

    variableSheet
    Sheet index of cell that contains value to adjust
    variableRow
    Row index of cell that contains value to adjust
    variableColumn
    Column index of cell that contains value to adjust
    formulaSheet
    Sheet index of cell that contains formula
    formulaRow
    Row index of cell that contains formula
    formulaColumn
    Column index of cell that contains formula
    desiredResult
    Formula result you wish to achieve
    See Also