needshelp12
New Member
- Joined
- Jun 24, 2011
- Messages
- 14
I am calculating various financial formulas, using UserForms in Excel 2010
I am declaring all values as doubles , which does not pose a problem for formulas like :
= nper( rate , Pmt, pv , fv)
Yet when it requires a percent like :
= pv( rate, nper, pmt, fv)
it only works if its in this format
= pv((6.5/12)%, nper, pmt, fv)
Here's my code:
Dim Value As String
Dim rate As Double
Dim nper As Double
Dim Fv As Double
Dim Pv As Double
rate = Rate1.Text
nper = NumPeriod1.Text
Pv = Pv1.Text
Fv = Fv1.Text
Value = Pmt(rate, nper, Pv, Fv)
Value = Format(Value, "Currency")
Payment1.Text = Value
Thanks !
I am declaring all values as doubles , which does not pose a problem for formulas like :
= nper( rate , Pmt, pv , fv)
Yet when it requires a percent like :
= pv( rate, nper, pmt, fv)
it only works if its in this format
= pv((6.5/12)%, nper, pmt, fv)
Here's my code:
Dim Value As String
Dim rate As Double
Dim nper As Double
Dim Fv As Double
Dim Pv As Double
rate = Rate1.Text
nper = NumPeriod1.Text
Pv = Pv1.Text
Fv = Fv1.Text
Value = Pmt(rate, nper, Pv, Fv)
Value = Format(Value, "Currency")
Payment1.Text = Value
Thanks !