Consulting

Results 1 to 4 of 4

Thread: Show the Solver Dialog Box

  1. #1
    VBAX Contributor GarysStudent's Avatar
    Joined
    Aug 2012
    Location
    Lakehurst, NJ, USA
    Posts
    127
    Location

    Show the Solver Dialog Box

    I am try to find out how to show the Solver dialog box. For example:

    Sub dural()
        Application.Dialogs(xlDialogGoalSeek).Show
    End Sub
    brings up the Goal Seek dialog, but:

    Sub dural()
        Application.Dialogs(xlDialogSolver).Show
    End Sub
    just throws an error.
    Have a Great Day!

  2. #2
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    'https://msdn.microsoft.com/en-us/library/office/ff197237.aspx?f=255&MSPPError=-2147217396Sub 
    Main()
      SolverReset
      SolverSolve UserFinish:=False
    End Sub

  3. #3
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,060
    Location
    Have a look at Jon Peltier's website re Using Solver in VBA
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  4. #4
    VBAX Contributor GarysStudent's Avatar
    Joined
    Aug 2012
    Location
    Lakehurst, NJ, USA
    Posts
    127
    Location
    Thank you !
    Have a Great Day!

Posting Permissions

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