FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > FpSpread Class : GoalSeek Method |
'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 FpSpread 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)
public bool GoalSeek( int variableSheet, int variableRow, int variableColumn, int formulaSheet, int formulaRow, int formulaColumn, double desiredResult )
FpSpread1.Sheets[0].Cells[1, 1].Formula = "C1+D1";
FpSpread1.Sheets[0].Cells[0, 3].Value = 2;
FpSpread1.GoalSeek(0, 0, 2, 0, 1, 1, 32);
FpSpread1.Sheets(0).Cells(1, 1).Formula = "C1+D1"
FpSpread1.Sheets(0).Cells(0, 3).Value = 2
FpSpread1.GoalSeek(0, 0, 2, 0, 1, 1, 32)
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6