Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 



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 02:48 PM.


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