hm... the UserForms are coming from VBA code that I created...
VB program calls "main" macro in Excel. This macro, in turn, calls several other subrutines and displays three UserForms, which shows what task is performed ("constracting graph..", etc).
Yes, maybe, instead...
Yes, this would be good...
Unfortunately, I am using Excel Solver in my optimization problem. It is free as opposed to VB Solvers, that cost a lot...
Thank you anyway!
Hi, Rob,
I am calling Excel macro from VB program. Excel is minimized all the time (by some reason it is even not displayed on the task bar...). So, I have the VB window, and above it I have a UserForm generated by Excel. However, if I switch to any other application (e.g., internet), I can...
Hi, RobBroekhuis, Zathras and Domylee,
Thank you for replying!
I tried to record the macro as you suggested ("Macro" - "Record Macro"). It works fine! Moreover, after this small test works fine - my other program stops giving the error!
I tried my program on Excel 2002...
Hi, domylee,
Did you find a way to solve the problem?
I am getting a similar error in my macro. I would appreciate if you advice me how to solve the problem.
Thank you in advance!
O'k!
I just got the answer:
I should check the value of SolverSolve. I can use something like this:
If SolverSolve <> 0 Then Stop
Thank's anyhow!
Tanya
Hi!
I am fairly new to VBA, and I would appreciate any advice.
I have recorded a macto to run SOLVER. However, I do not know how to read SOLVER results automatically. I mean, how to check if SOLVER solution converges or not.
I added the lines that takes solver control from the user...
Yaha!!!
this works!
Thank you!
the only problem is that I can not add a reference and execute a function from the reference in the same sub. But this is fine - I can put them into different macros and run sequentially.
Here is what I have:
---- add the reference on SOLVER
Sub ss3()...
Hi!
I am looking for a code that would automatically include reference to an Excel macro.
Currently, I need to go to Tools-References in VBA to include a reference. But, maybe, there is a way to code this?
Thanks!
Hi!
I am not a big expert, but I think, this should work:
' Do not display the Solver Results dialog box.
SolverSolve UserFinish:=True
' Finish and keep the final results.
SolverFinish KeepFinal:=1
Tanya
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.