ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How do I respond to a Solver Results Dialog Box from a macro? (https://www.excelbanter.com/excel-discussion-misc-queries/44192-how-do-i-respond-solver-results-dialog-box-macro.html)

gmk49

How do I respond to a Solver Results Dialog Box from a macro?
 
I am using Solver in a macro.
When finished, Solver displays Solver Results dialog box and halts the macro.
Instead of clicking the OK-button with the mouse, to resume the macro, I
want to do the OK acknowledge from within the macro, thus allowing the macro
to run uninterrupted from start to finish.
Is this possible and if so how?

Tushar Mehta

In article , gmk49
@discussions.microsoft.com says...
I am using Solver in a macro.
When finished, Solver displays Solver Results dialog box and halts the macro.
Instead of clicking the OK-button with the mouse, to resume the macro, I
want to do the OK acknowledge from within the macro, thus allowing the macro
to run uninterrupted from start to finish.
Is this possible and if so how?

Check XL VBA help for the SolverSolve function, particularly the
UserFinish argument.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions


All times are GMT +1. The time now is 08:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com