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: 17
Default Solver

Hello,

I would like to run a macro in order to running 4 solvers with one action
Could you please tell me why this code does not work.

Thanks in advance
AngelikiS



Sub BestFit()
' BestFit Macro

Dim solverok As variant

' Keyboard Shortcut: Ctrl+z

solverok SetCell:="$E$19", MaxMinVal:=3, ValueOf:="0",
ByChange:="$E$3:$E$4"
SolverSolve
solverok SetCell:="$F$19", MaxMinVal:=3, ValueOf:="0",
ByChange:="$F$7:$F$8"
SolverSolve
solverok SetCell:="$G$19", MaxMinVal:=3, ValueOf:="0",
ByChange:="$G$7:$G$8"
SolverSolve
solverok SetCell:="$H$19", MaxMinVal:=3, ValueOf:="0", ByChange:="$H$8"
SolverSolve
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 or Other? Stan Excel Worksheet Functions 5 June 4th 09 10:29 PM
how to add-in solver without cd sspeak Excel Discussion (Misc queries) 1 March 3rd 07 01:22 AM
Interesting Solver problem (Solver encounters an error) MrShorty Excel Discussion (Misc queries) 3 December 22nd 05 10:52 PM
"solver" tb Excel Discussion (Misc queries) 1 September 12th 05 01:19 AM
Resetting Solver Manually to Fix Solver Bug Stratuser Excel Programming 0 September 13th 04 07:04 PM


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