You are on page 1of 1

Sub NumerosConsecutivos()

Dim i As Integer
On Error GoTo Ultimo
i = InputBox(�Introduce el l�mite�, �Introducir n�meros consecutivos�)
For i = 1 To i
ActiveCell.Value = i
ActiveCell.Offset(1, 0).Activate
Next i
Ultimo:
Exit Sub

End Sub

You might also like