Quote:
Originally Posted by Stevenator65
I figured it out. I made an error. I was supposed to subtract 1, not multiply by negative one. Here's my final code:
Sub cmdCalc_Click
Dim Prin
Dim Rate
Dim Term
Dim MonthlyRate
Dim Payment
Dim Middle
Dim bottom
|
There's no need to "Dim" normal variables....
You can just use the without previous settings...
If you need to share a variable bettween several subs, then put them in the Global sub, like this:
Prin=""
Rate=""
Term=""
MonthlyRate=""
Payment=""
Middle=""
bottom=""