This does that.
A blank bookmark ("counter"). In my test the last paragraph is:
Printed copy: [blank text bookmark named "counter"]
Code:
Option Explicit
Sub UpdateBookmark(strBM As String, strText As String)
Dim r As Range
With ActiveDocument
Set r = .Bookmarks(strBM).Range
r.Text = strText
.Bookmarks.Add strBM, r
End With
Set r = Nothing
End Sub
Sub PrintIncrement()
Dim j As Long
For j = 1 To 10
Call UpdateBookmark("counter", Format(j, "0000"))
ActiveDocument.PrintOut
Next
' make bookmark blank again
Call UpdateBookmark("counter", "")
End Sub
Executing PrintIncrement - and I only tested 1 to 10, as I did not want to print 100! - does:
1. changes the bookmark to "0001" and prints the page
2. changes the bookmark to "0002" and prints the page
3. changes the bookmark to "0003" and prints the page
4. changes the bookmark to "0004" and prints the page
5. changes the bookmark to "0005" and prints the page
etc.
and finally ends up making the text of "counter" blank again.
So, 10 printed copies of a single page document, but with a counter as part of the printing.
There are of course other ways to do this.
"A little piece of heaven
without that awkward dying part."
advertisment for Reese's Peanut Butter Cups (a chocolate/peanut butter confection)
Gerry