Está en la página 1de 1

Private Sub ejemplo()

resultado = MsgBox("Elige un boton", vbAbortRetryIgnore, "Ejercicio")

Select Case resultado

Case vbAbort:

MsgBox ("Elegiste anular")

Case vbRetry:

MsgBox ("Elegiste Reintentar")

Case vbIgnore:

MsgBox ("Elegiste Ignorar")

End Select

End Sub

SubSayHi()

MsgBoxHi,,IsayHi

EndSub

Sub VFU()

Dim VF, VP, i, n, b As Double

VP = InputBox("Introduce el valor presente", "Calcular de VF")

i = InputBox("Introduce la tasa de interes", "Tasa de interes")

n = InputBox("Introduce el numero de periodos", "Periodos")

VF = Format(VP * (1 + i) ^ n, "###,###.00")

b = MsgBox("El valor futuro es: " & VF, vbOKOnly, "VF Calc")

End Sub

También podría gustarte