Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-23-2013, 06:49 PM
ue418 ue418 is offline Two ByChange ranges in SetCell command (solver) Windows 7 32bit Two ByChange ranges in SetCell command (solver) Office 2000
Novice
Two ByChange ranges in SetCell command (solver)
 
Join Date: May 2012
Posts: 17
ue418 is on a distinguished road
Default Two ByChange ranges in SetCell command (solver)

I have two noncontiguous ranges in a SetCell, ByChange command for Solver. I am trying the following:



SolverOk SetCell:="$U$" & r, MaxMinVal:=3, ValueOf:="0", ByChange:= _
"$v$" & r & ":$x$" & r, "$L$" & r & ":$q$" & r

where "r" is an integer that I am using for looping. Just assume it is 1 for the moment. So, I have two ranges, columns L thru Q, and columns V thru X. It keeps giving me a "require named parameter" error. I also tried to specify V1, W1 and X1 individually, but no matter what I do, I get that error. Could someone show me the proper syntax when you have two separate ranges in the ByChange region of the SetCell command? Thank you so much.

Rick
Reply With Quote
  #2  
Old 08-27-2013, 01:24 PM
ue418 ue418 is offline Two ByChange ranges in SetCell command (solver) Windows 7 32bit Two ByChange ranges in SetCell command (solver) Office 2000
Novice
Two ByChange ranges in SetCell command (solver)
 
Join Date: May 2012
Posts: 17
ue418 is on a distinguished road
Default Slight change to this problem

Hello everyone. I now have a slightly different problem, but hopefully easier? I now have a noncontiguous range, for my "changing" cells/columns in the SolverOK command. That is, I am changing columns N through T, but NOT including S! So I can do the range code for N thru R, but then I need to also specify column T as "changing". Of course, this is all in the SolverOk SetCell command, as described in my original post. Can anyone tell me how to "connect" the range specification with the single cell/column specification, in that command? Thank you so much.

Rick
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Macro help for Excel Solver ue418 Excel Programming 1 06-23-2013 12:34 PM
How to use named ranges in excel vba? bosve73 Excel Programming 4 01-25-2012 09:26 AM
Question on using solver jcg Excel 0 12-13-2011 05:54 PM
Dynamic Named Ranges using text hannu Excel 0 06-22-2010 04:42 PM
Ms word solver DAREGOT Word 1 03-11-2010 11:52 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:46 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft