WhatIfAnalysis Macro
'
' Keyboard Shortcut: Ctrl+g
'
Public Sub GoalSeeker()
For i = 3 To 187
cells(i, "AG").GoalSeek Goal:=0.15, ChangingCell:=cells(i, "AF")
cells(i, "AF") = WorksheetFunction.Round(cells(i, "AF"), 2)
cells(i, "AF") < 0 = 0
Next i
End Sub
'
' Keyboard Shortcut: Ctrl+g
'
Public Sub GoalSeeker()
For i = 3 To 187
cells(i, "AG").GoalSeek Goal:=0.15, ChangingCell:=cells(i, "AF")
cells(i, "AF") = WorksheetFunction.Round(cells(i, "AF"), 2)
cells(i, "AF") < 0 = 0
Next i
End Sub