Sub t() Dim y y = Application.InputBox("请输入你要打印的份数", "提示", 1) If y Then For i% = 1 To y With ActiveSheet.PageSetup .FirstPageNumber = i End With ActiveSheet.PrintOut Next End If End Sub
Sub t() Dim y y = Application.InputBox("请输入你要打印的份数", "提示", 1) If y Then For i% = 1 To y With ActiveSheet.PageSetup .FirstPageNumber = i End With ActiveSheet.PrintOut Next End If End Sub