#1   Report Post  
Jake
 
Posts: n/a
Default Goal Seek

Is there a way to perform the same function as Goal Seek, but base the inputs
off of cells in a worksheet rather than actually having to click through the
menu and enter link to the cells each time?

Also, is there a way to have Goal Seek output the required figure to meet
your objective output without actually changing the input cell?

  #2   Report Post  
csw78
 
Posts: n/a
Default


Don't know if this is what you're looking for. Basically, it performs
goal seek everytime the worksheet calculates. You can choose to invoke
goal seek with macro or click of a button. There are plenty of ways to
perform goal seek.

Private Sub worksheet_calculate()

_On_Error_GoTo_TheEnd
Application.EnableEvents_=_False_

Range("A1").GoalSeek Goal:=Range("A2"), ChangingCell:=Range("A3")

_TheEnd:
Application.EnableEvents_=_True_
End Sub

Make sure you have those underlines, or excel might loops forever.
If you don't understand. Please ask again. Good Luck.


--
csw78
------------------------------------------------------------------------
csw78's Profile: http://www.excelforum.com/member.php...o&userid=23008
View this thread: http://www.excelforum.com/showthread...hreadid=372087

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
goal seek wont calculate an accurate value past 3 decimal places Joe Browning Excel Discussion (Misc queries) 1 April 13th 05 07:29 AM
Goal Seek option baks Excel Discussion (Misc queries) 1 February 9th 05 04:10 AM
goal seek vs solver neoschenker Excel Worksheet Functions 3 February 3rd 05 03:56 PM
Goal Seek - Why make the PV negative? Mytpoet67 Excel Discussion (Misc queries) 1 January 13th 05 02:51 AM
Goal Seek - reference a cell for "To value" field? cchristensen Excel Worksheet Functions 1 November 5th 04 07:27 PM


All times are GMT +1. The time now is 04:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"