If grdPayments.Text <> "" And AmortFlag = False Then
' Enable amortization button
cmdCalcAmort.Enabled = True
Else
' Disable amortization button
cmdCalcAmort.Enabled = False
End If
End Sub
Sub grdPayments_DblClick ()
' Only act if cell contains a payment
If grdPayments.Text <> "" And AmortFlag = False Then
' Enable amortization button
cmdCalcAmort.Enabled = True
' Change mouse pointer to hourglass
MousePointer = 11
' Calculate amortization
CalcAmort
' Display amortization
ShowAmort
' Change mouse pointer to default
MousePointer = 0
Else
' Disable amortization button
cmdCalcAmort.Enabled = False
End If
End Sub
Sub mnuOptCopy_Click ()
ClipCopy
End Sub
Sub mnuOptDwn_Click (Index As Integer)
Select Case Index
Case 0
mnuOptDwn(0).Checked = True
mnuOptDwn(1).Checked = False
lblDwnPay.Caption = "Percent Down"
Case 1
mnuOptDwn(0).Checked = False
mnuOptDwn(1).Checked = True
lblDwnPay.Caption = "Amount Down"
End Select
End Sub
Sub mnuOptExit_Click ()
End
End Sub
Sub mnuOptInstruct_Click ()
' Declare local variables
Dim MsgText
Dim PB
' Initialize paragraph break variable
PB = Chr$(10) & Chr$(13) & Chr$(10) & Chr$(13)
' Display message
MsgText = "Enter purchase amount, down payment, length of loan, and interest rates. Click the Calculate Payments button to display monthly payments in the grid on the right."
MsgText = MsgText & PB & "Select a monthly payment and click the Calculate Amortization button to display an amortization schedule for the selected interest rate and length of loan in the grid."
MsgText = MsgText & PB & "Highlight cells in the grid and select Copy from the Options menu to copy data to the Clipboard."