abhishekgupta
New Member
- Joined
- May 12, 2022
- Messages
- 4
- Office Version
- 365
- 2021
- 2019
- Platform
- Windows
Sub Macro1()
'
' Macro1 Macro
'
'
SolverOk SetCell:="$BD$8", MaxMinVal:=3, ValueOf:=0, ByChange:="$AJ$8", Engine _
:=1, EngineDesc:="GRG Nonlinear"""
SolverOk SetCell:="$BD$8", MaxMinVal:=3, ValueOf:=0, ByChange:="$AJ$8", Engine _
:=1, EngineDesc:="GRG Nonlinear"""
SolverSolve
End Sub
I want to run the above code for cell B8 till B15 (& AJ8 till AJ15 correspondingly), how to run this? Please suggest the appropriate code changes.
'
' Macro1 Macro
'
'
SolverOk SetCell:="$BD$8", MaxMinVal:=3, ValueOf:=0, ByChange:="$AJ$8", Engine _
:=1, EngineDesc:="GRG Nonlinear"""
SolverOk SetCell:="$BD$8", MaxMinVal:=3, ValueOf:=0, ByChange:="$AJ$8", Engine _
:=1, EngineDesc:="GRG Nonlinear"""
SolverSolve
End Sub
I want to run the above code for cell B8 till B15 (& AJ8 till AJ15 correspondingly), how to run this? Please suggest the appropriate code changes.