anon125
Computer
- Aug 11, 2009
- 1
Sub zerotest()
Dim seekValue As Double
Dim changeCell As Range
Inflation = Range("O7").Value
seekValue = 12345
'seekValue = InputBox("What's the value to seek?")
For Each changeCell In Range("N14:N32").Cells
'Do Until changeCell < 10
changeCell.GoalSeek Goal:=seekValue, changingCell:=changeCell.Offset(0, -4)
'Do Until changeCell < 10
' Loop
seekValue = seekValue + (seekValue * Inflation)
' Loop
Next changeCell
End Sub
yes i know they are commented out.
but how do i limit the value to 10 or more?
thanks
Dim seekValue As Double
Dim changeCell As Range
Inflation = Range("O7").Value
seekValue = 12345
'seekValue = InputBox("What's the value to seek?")
For Each changeCell In Range("N14:N32").Cells
'Do Until changeCell < 10
changeCell.GoalSeek Goal:=seekValue, changingCell:=changeCell.Offset(0, -4)
'Do Until changeCell < 10
' Loop
seekValue = seekValue + (seekValue * Inflation)
' Loop
Next changeCell
End Sub
yes i know they are commented out.
but how do i limit the value to 10 or more?
thanks