You are on page 1of 2

TIPO DE CRÉDITO

Private Sub ComboBox2_Change()

TextBox1.Value = 0

TextBox1.Enabled = False

If ComboBox2 = "CONSUMO" Then

TextBox1.Value = 0.35

End If

If ComboBox2 = "VIVIENDA" Then

TextBox1.Value = 0.15

End If

If ComboBox2 = "PRODUCTIVO" Then

TextBox1.Value = 0.25

End If

If ComboBox2 = "Ninguno" Then

TextBox1.Value = 0

TextBox1.Enabled = True

End If

End Sub

CALCULAR

Private Sub CommandButton1_Click()

TextBox3 = (ComboBox3 * TextBox1 / 100 * (1 + TextBox1 / 100) ^ TextBox2) / (((1 + TextBox1 /


100) ^ TextBox2) - 1)

End Sub
SIMULADOR

Cells(2, 1) = “Monto”

Cells(3, 1) = “Interés”

Cells(4, 1) = “Cuota”

Cells(5, 1) = “Fecha de Inicio”

Cells(2, 2) = ComboBox3

Cells(3, 2) = TextBox1

Cells(4, 2) = TextBox2

Cells(5, 2) = “=today()”

Cells(8, 1) = “N de cuotas”

Cells(8, 2) = “Fecha de pago”

Cells(8, 3) = “Monto de la cuota”

For i = 1 To TextBox2

Cells(8 + i, 1) = i

Cells(8+ i, 2) = Cells(5, 2) + i * 30

Cells(8+ i, 3) = TextBox3

Next

You might also like