PC Review


Reply
Thread Tools Rate Thread

"GoalSeek method of Range object failed" error message

 
 
=?Utf-8?B?Rml4aXRfU3RldmU=?=
Guest
Posts: n/a
 
      13th Jan 2005
I'm using a spin button on a worksheet and I want to call a subroutine that
performs a GoalSeek from the spinbutton_spindown procedure. I have the
following spinbutton procedure and goalseek procedure.

Private Sub Cout_Spin_SpinDown()
Worksheets("Capacitors").Calculate
Range("Cout").Value =
Worksheets("Capacitors").Range("Cap_next_value_down")
Worksheets("Data").Calculate
Calc_Crossover
Worksheets("Main").Calculate
End Sub

Sub Calc_Crossover()
Range("C45").GoalSeek Goal:=0, ChangingCell:=Range("B45")
End Sub

The Calc_Crossover works fine when I run it as a macro. I have tried to run
it programatically with the Calc_crossover routine in a separate module and
on the same sheet as the spin_button routine. The range used for the
GoalSeek is on a separate worksheet "Data", however, I have used the
worksheets object to try to specify this as well and it still doesn't work.

I get the "GoalSeek method of Range object failed" message.

I have the application in manual calculation mode and used range
calculations to control the recalculation.

Can anybody offer any suggestions on what I might try? Thanks!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Range object evaluates to Range.value, or Range object paul.domaskis@gmail.com Microsoft Excel Programming 6 4th Jun 2009 07:28 PM
Excel Addin:Setting the range to the Excel.Range object range prop =?Utf-8?B?UnAwMDc=?= Microsoft Excel Worksheet Functions 5 24th Nov 2006 05:30 PM
Custom attribute for a method: how to get the method object ? Oriane Microsoft Dot NET 1 12th Jun 2005 09:47 PM
Range Question / error 1004: method Range of object Worksheet has failed Paul Microsoft Excel Programming 3 7th Apr 2005 02:56 PM
Adding named range gives error "method range of object _Global failed " Gunnar Johansson Microsoft Excel Programming 3 10th Aug 2004 01:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:33 AM.