ttran123

New Member
Joined
Jul 25, 2018
Messages
8
Hi there,

I'm new the forum so I apologize if the code below doesn't make sense. I would like the variable cell to be ascending




Sub year1()
'
' year1 Macro
'


'
SolverOk SetCell:="$P$36", MaxMinVal:=3, ValueOf:=0, ByChange:="$B$6:$B$16", _
Engine:=1, EngineDesc:="GRG Nonlinear"
SolverOptions MaxTime:=0, Iterations:=0, Precision:=0.000001, Convergence:= _
0.0001, StepThru:=False, Scaling:=True, AssumeNonNeg:=True, Derivatives:=1
SolverOptions PopulationSize:=100, RandomSeed:=0, MutationRate:=0.075, Multistart _
:=False, RequireBounds:=True, MaxSubproblems:=0, MaxIntegerSols:=0, _
IntTolerance:=1, SolveWithout:=True, MaxTimeNoImp:=30
SolverOk SetCell:="$P$36", MaxMinVal:=3, ValueOf:=0, ByChange:="$B$6:$B$16", _
Engine:=1, EngineDesc:="GRG Nonlinear"
SolverOk SetCell:="$P$36", MaxMinVal:=3, ValueOf:=0, ByChange:="$B$6:$B$16", _
Engine:=1, EngineDesc:="GRG Nonlinear"
SolverSolve
End Sub
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,214,960
Messages
6,122,479
Members
449,088
Latest member
Melvetica

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top