Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Problem getting solver to work in macro


I'm trying to use solver in a macro and for some reason it won't find
solutions when run from the macro. When I run it from the toolbar on
the same cell it works perfectly.

I recorded the operation when I ran it manually to get the code for my
macro. Here's what the recording came up with-

SolverReset
SolverOk SetCell:="$i$14", MaxMinVal:=2, ByChange:="$i$15"
SolverChange CellRef:="$i$14", Relation:=3, FormulaText:="$i$13"
SolverSolve

Like I said, when I run solver in the worksheet, it works and that's
the code it records. When I run the macro it does not work. Can
anyone help me understand what's going on here?

Thanks-


--
dlowie
------------------------------------------------------------------------
dlowie's Profile: http://www.excelforum.com/member.php...o&userid=26676
View this thread: http://www.excelforum.com/showthread...hreadid=399470

Reply
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
Interesting Solver problem (Solver encounters an error) MrShorty Excel Discussion (Misc queries) 3 December 22nd 05 10:52 PM
How do I get Solver to work Graeme Excel Discussion (Misc queries) 6 September 22nd 05 04:33 AM
Excel Solver with Macro doesn't work Jukka Excel Programming 1 March 10th 05 04:39 PM
Excel problem - why won't my macro work? madbloke Excel Programming 11 September 22nd 04 02:19 PM
Solver won't work in macro, Excel 2002 SP1 Martin[_11_] Excel Programming 0 November 7th 03 07:03 PM


All times are GMT +1. The time now is 02:58 PM.

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"