The following subroutine will do what you want.
Be aware it will overwrite non-blank cells
Practice on a blank worksheet; then copy to the 'working' worksheet!
Need help with VBA? See David McRitchie's site on "getting started" with VBA
http://www.mvps.org/dmcritchie/excel/getstarted.htm
Sub repeater()
Dim myValue As Integer, myLast As Integer
Dim n As Integer, j As Integer
Dim Message, Title, Default
Message = "What is the last number?"
Title = "Last number"
Default = "1"
myLast = InputBox(Message, Title, Default)
Message = "How many repeats?"
Title = "Repeats" ' Set title.
Default = "1"
myValue = InputBox(Message, Title, Default)
Range("A1").Select ' where the first number goes
For n = 1 To myLast ' use For n = 5 to start at 5, etc
For j = 1 To myValue
ActiveCell.Value = n
ActiveCell.Offset(1, 0).Activate
Next j
Next n
End Sub
best wishes