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: 144
Default Solver working intermittingly...tried some previously posted solut

Hi,

I am having issues with Solver -- my code is below. It only works with the
code after running it manually -- and only when the same exact scenario being
run by the code is executed manually first (if I run Solver manually for a
scenario which is completely different than the scenario in the code, the
code still does not work). There is no error coming up, it just completes
with no output.

I tried putting in the statement directly below into my code (saw this
suggestion in another post), but this does not correct the issue.

Application.Run "Solver.xla!Solver.Solver2.Auto_open"

Any idea on how I can resolve this? Thanks ahead of time!


' In the scenario I've been testing, "holdclearsumprod" ='Transaction
Summary'! _
$AK$1, cell AK1 = sumproduct(L2:L5,AJ2:AJ5), "holdclearbin" ='Transaction _
Summary'!$AJ$2:$AJ$5

Sheets("Transaction Summary").Activate
SolverOk SetCell:="holdclearsumprod", MaxMinVal:=3, ValueOf:="=AL1", _
ByChange:="holdclearbin"
SolverAdd CellRef:="holdclearbin", Relation:=5, FormulaText:="binary"
SolverSolve userfinish:=True

--
Robert
 
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 not working Kerry[_2_] Charts and Charting in Excel 21 December 9th 09 04:34 AM
Solver not working for me Dean[_8_] Excel Programming 31 October 10th 07 12:57 AM
Previously Posted...Need Help! Hamilton Excel Programming 1 November 16th 04 11:00 PM
Solver Macro quit working oghebrial Excel Programming 1 October 31st 04 04:11 PM
Solver isn't working... Rob Bovey Excel Programming 0 September 5th 03 09:36 PM


All times are GMT +1. The time now is 11:52 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"