Private Sub CommandButton1_Click()
n = Application.InputBox("重复次数", "请输入重复次数", 1, Type:=1)
If n <= 0 Then
MsgBox "输入有误"
ElseIf n = False Then
Exit Sub
End If
1: For i = 1 To 328
Start = Timer
PauseTime = 1
Do While Timer < Start + PauseTime
DoEvents
Loop
ActiveWindow.SmallScroll Down:=61
Next
n1 = n1 + 1
If n1 < n Then
Rows("1").Select
GoTo 1
End If
Rows("1").Select
End Sub