Goal Seek macro

G

Guest

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.
 
G

Guest

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top