Hey I need help making a Next Loop to add to the following macro which uses solver.
Sub Macro7()
'
' Macro7 Macro
'
'
SolverOk SetCell:="$O$41", MaxMinVal:=1, ValueOf:="0", ByChange:="$G$41"
SolverAdd CellRef:="$H$41", Relation:=1, FormulaText:="$T$41"
SolverAdd CellRef:="$H$41", Relation:=3, FormulaText:="$U$41"
SolverAdd CellRef:="$Q$41", Relation:=3, FormulaText:="$V$41"
SolverAdd CellRef:="$K$41", Relation:=3, FormulaText:="$W$41"
SolverAdd CellRef:="$G$41", Relation:=1, FormulaText:="$X$41"
SolverOk SetCell:="$O$41", MaxMinVal:=1, ValueOf:="0", ByChange:="$G$41"
SolverSolve
End Sub
Sub Macro7()
'
' Macro7 Macro
'
'
SolverOk SetCell:="$O$41", MaxMinVal:=1, ValueOf:="0", ByChange:="$G$41"
SolverAdd CellRef:="$H$41", Relation:=1, FormulaText:="$T$41"
SolverAdd CellRef:="$H$41", Relation:=3, FormulaText:="$U$41"
SolverAdd CellRef:="$Q$41", Relation:=3, FormulaText:="$V$41"
SolverAdd CellRef:="$K$41", Relation:=3, FormulaText:="$W$41"
SolverAdd CellRef:="$G$41", Relation:=1, FormulaText:="$X$41"
SolverOk SetCell:="$O$41", MaxMinVal:=1, ValueOf:="0", ByChange:="$G$41"
SolverSolve
End Sub