+ Reply to Thread
Results 1 to 4 of 4

Error running Macro/Solver result

  1. #1
    Registered User
    Join Date
    02-07-2005
    Posts
    2

    Error running Macro/Solver result

    Ok guys, my question is in two parts...

    First one, when I try to run a certain macro, and I get the error saying "Compile error: Sub or Function not defined" in VB highlighting SolverOk--is this caused by NOT having referenced solver?

    Second--When I try to run the same macro after I have referenced solver in that particular macro, it doesn't record the step of hitting the ok button in the solver results screen. (The screen i'm talking about is the one where it shows "solver found a solution, keep/restore etc.) I'd like to make it so that when the macro is run, the Solver Results screen isn't shown, and instead to have the macro hit OK automatically to display the results.

    Thanks everyone!

  2. #2
    Registered User
    Join Date
    02-07-2005
    Posts
    2
    Bump...this seems like a easy question for you gurus out there, all the help is appreciated, thank you!

  3. #3
    Registered User
    Join Date
    02-23-2005
    Posts
    2
    hey...

    About the first one....
    you have to turn on the solver first... tools-> refernces-> solver in VB editor.

    but i don't know the answer to the #2, i need it myself right now...

    please HELP

  4. #4
    Registered User
    Join Date
    02-23-2005
    Posts
    2
    i got it from other forum... enjoy

    If I understand the question, one is trying to not have the result dialog
    box pop up when Solver is finished.

    Results = SolverSolve(UserFinish:=True)

    Use "Results" to determine how solver did.

    > I don't want the
    > solver results box to pop up ...

    HTH.
    (Note that in Windows, this is backwards (in my opinion). It should be
    False, because one does not want the User to interface with Solver when
    done. Don't know why they changed this from the Apple version.)

+ 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