只可以打到98行。接下来就点不上了。以下是代码:Private Sub Worksheet_Activate()SpinButton1.Max = Sheets("银行回单数据").Range("B65536").End(xlUp).Row - 2End SubSub dy()ks = Val(Application.InputBox("请输入起始页号"))If ks < 0 Or ks > Sheets("银行回单数据").Range("B65536").End(xlUp).Row - 2 Then MsgBox "超出页面范围" Exit SubEnd Ifjs = Val(Application.InputBox("请输入结束页号"))If js < 0 Or js > Sheets("银行回单数据").Range("B65536").End(xlUp).Row - 2 Or js < ks Then MsgBox "超出页面范围" Exit SubEnd IfFor i = ks To js SpinButton1.Value = i PrintOutNext iEnd Sub