Skip to content

Commit 96093af

Browse files
authored
Update personal_macro_workbook.vb
1 parent 96cdade commit 96093af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

personal_macro_workbook.vb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4994,6 +4994,7 @@ Resolve:
49944994
SolverAdd CellRef:=Cells(6, (4 + n)), Relation:=2, FormulaText:=Cells(6, (4 + n)).Value
49954995
Else
49964996
SolverAdd CellRef:=Cells(6, (4 + n)), Relation:=1, FormulaText:=(Cells(3, 101).Value - Cells(2, 101).Value) * 1.5 ' amplitude max
4997+
If Cells(6, (4 + n)).Value < (Cells(3, 101).Value - Cells(2, 101).Value) / 100 Then Cells(6, (4 + n)).Value = (Cells(3, 101).Value - Cells(2, 101).Value) / 100
49974998
SolverAdd CellRef:=Cells(6, (4 + n)), Relation:=3, FormulaText:=(Cells(3, 101).Value - Cells(2, 101).Value) / 1000 ' amplitude min
49984999
End If
49995000

0 commit comments

Comments
 (0)