+ Reply to Thread
Results 1 to 3 of 3

Goal seek in VBA, but not on a range

  1. #1
    Registered User
    Join Date
    04-08-2011
    Location
    Denver, Co
    MS-Off Ver
    Excel 2007/2010
    Posts
    5

    Goal seek in VBA, but not on a range

    I'd like to use goal seek in a UDF, while calling another UDF. The problem is, I'm not seeking on a range. Thoughts?

    In the code below, "UDF2" is another user defined function in the same workbook that is working correctly.

    Please Login or Register  to view this content.
    Last edited by Telefonica; 09-02-2012 at 06:29 PM.

  2. #2
    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: Goal seek in VBA, but not on a range

    GoalSeek (and Solver) only work on ranges, and you can't do GoalSeek (or Solver) via a UDF.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    04-08-2011
    Location
    Denver, Co
    MS-Off Ver
    Excel 2007/2010
    Posts
    5

    Re: Goal seek in VBA, but not on a range

    Dang. That's what I was afraid of.

    Thanks.

+ 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