I have this loop:
ANd everytime it runs, excel looks up. Any idea why?
Code:
Dim blnTargetMet As Boolean
Dim UPBOrig As Currency
Dim UPBNew As Currency
Dim IR As Double
Dim IRCurrent As Double
Dim Term As Integer
Dim PITarget As Currency
Dim MPITarget As Currency
Dim PINew As Currency
blnTargetMet = False
UPBNew = UPBOrig
Do While blnTargetMet = False
PINew = -Pmt((IR / 100) / 12, Term, UPBNew)
If PINew < PITarget And PINew >= MPITarget Then
blnTargetMet = True
Exit Do
End If
UPBNew = UPBNew - 1
Loop
ANd everytime it runs, excel looks up. Any idea why?