Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 12-02-2009, 10:21 AM
fdelriog fdelriog is offline
Registered User
 
Join Date: 05 Feb 2008
Posts: 10
fdelriog is becoming part of the community
Goal Seek

Please Register to Remove these Ads

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".
Reply With Quote
  #2  
Old 12-02-2009, 11:31 AM
JeanRage JeanRage is offline
Valued Forum Contributor
 
Join Date: 02 Mar 2009
Location: Nice, France
MS Office Version:Excel 2003
Posts: 485
JeanRage is attaining expert status JeanRage is attaining expert status
Re: Goal Seek

Hi,

You can be specific about each range ...

Quote:
ChangingCell:=Sheet2.Range("P9")
HTH
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump