+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Error of "application-defined or object-defined error" in Goalseek in

  1. #1
    Registered User
    Join Date
    05-12-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    11

    Question Error of "application-defined or object-defined error" in Goalseek in

    Hi all,
    I always have above error while running below code in the excel 2007,
    please help me out!
    Please Login or Register  to view this content.
    The function I used in the excel is:
    Source = X*X +X*300

    Regards,
    Edward
    Last edited by edwardhdwang; 05-13-2010 at 07:07 PM. Reason: add code tag

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Error of "application-defined or object-defined error" in Goalseek in

    Try

    Please Login or Register  to view this content.
    The variables are ranges and not values.
    Martin

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Error of "application-defined or object-defined error" in Goalseek in

    Welcome to the forum, edwardhdwang.

    Please take a few minutes to read the forum rules, and then edit your post to add CODE tags.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    05-12-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Error of "application-defined or object-defined error" in Goalseek in

    it works now. But after I changed the Goal from -800 to -200, it shows up "Reference is not valid". BTW, how this change solves the issue, I have no clue. Please give me some explanation.

    Thanks lot!

  5. #5
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Error of "application-defined or object-defined error" in Goalseek in

    -200 seems to work for me. Maybe there is something else on your sheet that is causing the problem?

    My solution creates X and Source as ranges (this is done with the Set statement). As ranges, the goalseek method can work directly with them.

  6. #6
    Registered User
    Join Date
    05-12-2010
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: Error of "application-defined or object-defined error" in Goalseek in

    Thanks! It solved!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1