Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 921
Default Goal Seek macro

Hi

I was using goal seek in a macro to find an interest rate.

But the goal I am seeking changes so in my code I have

ActiveCell.GoalSeek Goal:=X, ChangingCell:=Range("A3")

Where "X" is set to Range("A1").value
But this gives me a "Reference is not valid" error.
Is there any way around this, so that I can assign the goal in a cell in the
worksheet and have the macro calculate the interest rate using "goal seek"

Thanks

But this gives me an error.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Goal Seek macro

Did you define x as a variable? (dim x...)
Did you select only one cell which to be the goal?

"Jeff" wrote:

Hi

I was using goal seek in a macro to find an interest rate.

But the goal I am seeking changes so in my code I have

ActiveCell.GoalSeek Goal:=X, ChangingCell:=Range("A3")

Where "X" is set to Range("A1").value
But this gives me a "Reference is not valid" error.
Is there any way around this, so that I can assign the goal in a cell in the
worksheet and have the macro calculate the interest rate using "goal seek"

Thanks

But this gives me an error.

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 via macro? Ken G. Excel Discussion (Misc queries) 2 April 3rd 09 09:48 AM
Goal Seek in a Macro mrogge2895 Excel Discussion (Misc queries) 1 November 20th 08 11:37 PM
Can I build 'goal seek' facility into a macro? sprasanna Excel Discussion (Misc queries) 1 April 28th 05 08:07 AM
Goal Seek tool in a macro choboy Excel Discussion (Misc queries) 0 April 27th 05 09:22 AM
Simple goal seek macro Elijah Excel Programming 0 August 26th 03 01:45 AM


All times are GMT +1. The time now is 02:47 PM.

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

About Us

"It's about Microsoft Excel"