Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA Solver FormulaText

I have been trying to run a macro using the Solver add-in.
The macro makes calculations and solves for the unknowns
in one column. I then try to use a For..Next loop to
complete the similar calculations in the following columns
using data from only that "nth" columns.

I am having problems getting the FormulaText option in the
SolverAdd command to run with the for loop. I have been
trying:

SolverAdd CellRef:=Cells(56, 3 + j - 1), Relation:=2,
FormulaText:=Worksheets("Given_Moment").Cells(57, 3 + j - 1)

But I only can get the following to work, which only works
with the first column: SolverAdd CellRef:=Cells(56, 3 + j -
1), Relation:=2, FormulaText:="$C$57"

Is there any way to have the FormulaText value read a
"relative" data type or cell in a column?

Thank you for your help!
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
VBA Solver help. Soccer boy[_2_] Excel Discussion (Misc queries) 0 March 11th 09 03:18 PM
can we do this with solver Amit Excel Discussion (Misc queries) 0 December 8th 06 10:06 PM
Solver VBA kwrohde Excel Discussion (Misc queries) 1 January 18th 06 04:28 PM
Interesting Solver problem (Solver encounters an error) MrShorty Excel Discussion (Misc queries) 3 December 22nd 05 10:52 PM
Using Solver with VBA EggShell Excel Discussion (Misc queries) 2 August 22nd 05 07:06 AM


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