+ Reply to Thread
Results 1 to 2 of 2

Thread: Goal Seek

  1. #1
    Registered User
    Join Date
    02-05-2008
    Posts
    10

    Goal Seek

    Im using this code to update a goal seek method if something changes

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Row = 19 And Target.Column = 13 Then
    Range("P19").GoalSeek Goal:=Range("M19").Value, _
    ChangingCell:=Range("P9")
    End If
    End Sub


    But how could i do the same but if a cell in "sheet A" changes but i want the goal seek to run in "Sheet B".

  2. #2
    Valued Forum Contributor JeanRage's Avatar
    Join Date
    03-02-2009
    Location
    Nice, France
    MS-Off Ver
    Excel 2003
    Posts
    705

    Re: Goal Seek

    Hi,

    You can be specific about each range ...

    ChangingCell:=Sheet2.Range("P9")
    HTH

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0