I want to print a document and everytime that it prints, I just want it to add a counter on a cell box. This is the code that I found here prints 999 pages, I just need it to print once and keep that number till next time we print. Can any one help so it prints once?
Sub MyPrint()
Dim i As Integer
' Format cell as Text to maintain leading zeros
Range("L4").NumberFormat = "@"
' Print 1000 copies, each with different number
For i = 0 To 999 Step 1
Range("A1") = Format(i, "000")
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Next i
End Sub
Sub MyPrint()
Dim i As Integer
' Format cell as Text to maintain leading zeros
Range("L4").NumberFormat = "@"
' Print 1000 copies, each with different number
For i = 0 To 999 Step 1
Range("A1") = Format(i, "000")
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Next i
End Sub