Sub 列印自動跳號()
Dim myPrintNum As Integer
Dim myPrompt, myTitle As String
myPrompt = "請輸入要列印的份數"
myPrintNum = Application.InputBox(myPrompt, myTitle, 4, , , , , 1)
ActiveSheet.PrintOut
Range("A1") = Range("A1") + 1
End Sub作者: 准提部林 時間: 2016-4-22 09:59
Sub 列印自動跳號()
Dim myPrintNum As Integer
myPrintNum = Application.InputBox("請輸入要列印的份數", , 1)
For i = 1 To myPrintNum
ActiveSheet.PrintOut
If i < myPrintNum Then [A1] = [A1] + 1
Next
End Sub作者: zero20209 時間: 2016-4-22 11:23