Hi,
I am trying to write a simple macro to iterate through a range of cells in a column, that need to be computed as a goal seek function, with changing inputs from another cell in the coresponding row. I am a newbie in vba. Any help is greatly appreciated
Sub GoalSeek()
Range("G8").GoalSeek Goal:=100%, ChangingCell:=Range("D8")
End Sub
I would like to iterate from target cell G8 to the of the end of the column. The changing input is also from cell D8 to the end of the column
The formula is = G8 = 1 - H8(where H8 is dependant on changing cell D8)
As we go down; G9 = 1 - H9 (where H9 is dependant on changing cell D9)
Also how do i specify a percentage value in the goal, as it does not take a percent sign in the vba code.
Thanks!
Claudius
I am trying to write a simple macro to iterate through a range of cells in a column, that need to be computed as a goal seek function, with changing inputs from another cell in the coresponding row. I am a newbie in vba. Any help is greatly appreciated
Sub GoalSeek()
Range("G8").GoalSeek Goal:=100%, ChangingCell:=Range("D8")
End Sub
I would like to iterate from target cell G8 to the of the end of the column. The changing input is also from cell D8 to the end of the column
The formula is = G8 = 1 - H8(where H8 is dependant on changing cell D8)
As we go down; G9 = 1 - H9 (where H9 is dependant on changing cell D9)
Also how do i specify a percentage value in the goal, as it does not take a percent sign in the vba code.
Thanks!
Claudius
Last edited: