b'SOLUCIN: Option ExplicitPrivate Sub cbCalcular_Click() Const AgnoIni = 2009 Dim PobIni As Long Dim PobFin As Long Dim pCre As Single Dim AgnoFin As Integer Dim NAgnos As ByteRange("B3") = AgnoIni Do PobIni = Val(InputBox("Ingrese la poblacion inicial", "Dato: Poblacin Inicial")) If Not (PobIni 0) Then MsgBox "Dato mal ingresado", vbCritical, "Ventana de error" End If Loop Until (PobIni 0) Range("B4") = PobIniDo PobFin = Val(InputBox("Ingrese poblacion objetivo", "Dato: Poblacin Objetivo")) If Not (PobFin PobIni) Then MsgBox "Dato mal ingresado", vbCritical, "Ventana de error" End If Loop Until (PobFin PobInicial) Range("B5") = PobFinDo pCre = Val(InputBox("Ingrese la % de crecimiento", "Dato: % de Crecimiento")) If Not (pCre 0) Then MsgBox "Dato mal ingresado", vbCritical, "Ventana de error" End If Autor: Jos M. Martn Senmache S.Pgina 464'