LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Solver: An unexpected internal error occurred, or available memory was...

Hello,

I know that there is a lot written about that problem, but I almost
tried everything.
My macro lokks like that:

Sub Macro2()
SolverReset
SolverAdd CellRef:="$P$736", Relation:=2, FormulaText:="$K$736"
SolverAdd CellRef:="$Q$736", Relation:=2, FormulaText:="$I$736"
SolverOk MaxMinVal:=1, ValueOf:="0", ByChange:="$V$736:$W$736"
SolverSolve UserFinish:=True
SolverFinish KeepFinal:=1
End Sub

I tried with:
solver.Auto_open and with
Application.Run "Solver.xla!Auto_Open" and with macro:
Sub AutoOpenSolver()
If Not SOLVER.Solver1.AutoOpened Then
SOLVER.Solver2.Auto_Open
End If
End Sub

Can anybody help me ???

And other question. Is there possibility to make such a macro with for
loop. For example (I know it is bad):
Sub Macro2()
Fok k = 1 to 10
SolverReset
SolverAdd CellRef:="$P$736+k", Relation:=2,
FormulaText:="$K$736+k"
SolverAdd CellRef:="$Q$736+k", Relation:=2,
FormulaText:="$I$736+k"
SolverOk MaxMinVal:=1, ValueOf:="0",
ByChange:="$V$736+k:$W$736+k"
SolverSolve UserFinish:=True
SolverFinish KeepFinal:=1
Next k
End Sub

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Solver Error - an unexpected internal error has occurred Steve Excel Discussion (Misc queries) 1 February 12th 09 03:18 AM
Solver Error - an unexpected internal error has occurred Steve Excel Discussion (Misc queries) 0 February 12th 09 02:35 AM
Solver Error - an unexpected internal error has occurred Steve Excel Discussion (Misc queries) 0 February 12th 09 02:19 AM
Solver: An unexpected internal error occurred, or available memory Chad Excel Programming 3 March 9th 05 03:29 PM
WinXP: Solver: An unexpected internal error occurred ... Ken Dahlberg Excel Programming 1 May 6th 04 05:35 PM


All times are GMT +1. The time now is 03:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"