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: 8
Default Solver code does not save results to sheet - What am I missing?!

Dear all,

I am down to my last strand of hair on some code to run a Solver for my
spreadsheet. All I want is for the values to be kept on the sheet when
it is finished, but instead the change cells ("e11:i11") are left blank.
I have recorded the macro first, and then embellished it following
previous NG postings, yet it still doesn't work. The code is:

SolverReset
SolverOk SetCell:=Range("$J$31"), MaxMinVal:=3, Valueof:=0,
ByChange:=Range("$E$11:$I$11")
SolverAdd CellRef:=Range("$E$31:$I$31"), Relation:=2,
FormulaText:=0
SolverSolve (True)
SolverFinish KeepFinal:=1

I have searched the NG as much as possible to try and find why this
won't work. Any pointers for my errors would be gratefully received.


Many thanks in advance,
Simon Livings

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
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
VBA code to save excel sheet [email protected] Excel Discussion (Misc queries) 1 March 17th 07 04:20 AM
How to get standard errors from the Solver results ? Euh Excel Discussion (Misc queries) 1 January 9th 07 03:27 PM
How do I turn off the solver results dialog box cripwell01 Excel Worksheet Functions 1 November 9th 05 02:13 PM
Excel Solver Results do not show up hhenson Excel Worksheet Functions 1 December 15th 04 04:57 PM
Solver Table missing in Data Menu of Excel2003. Where is it? Guaylen Excel Worksheet Functions 2 November 14th 04 08:54 PM


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