Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Goal Seek

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I am trying to set up something like Goal Seek in VBA so
    that I can run the following calculation (which has been
    simplified):

    A1 = X
    A2 = A1*100
    A3 = 500

    I want to write VBA code that will calculate "X" for A1 to
    equal 5 (since X*100=500). I cannot rewrite the formula in
    A1 because A2 is actually a combination of hundreds of
    formulas. Also, I can't use Goal Seek. I need something
    that will run random numbers until it finds a match. Any
    ideas? Thanks.

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Why have you concluded that you can't use Goal Seek? Won't this work...

    Range("A2").GoalSeek Goal:=Range("A3"), ChangingCell:=Range("A1")

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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