How to Print Sequential Copy Numbers in Word
Question details
The user needs to print multiple copies of a single document, with each copy displaying a unique, sequential number (e.g., Copy 1 of 38, Copy 2 of 38).

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Printing multiple physical copies of a document where each copy needs to be individually numbered for distribution or tracking purposes.
- Observed behavior
- Standard print settings only output identical copies without unique numbering, requiring a combination of fields and macros to automate the sequential numbering.
Ensure that the Developer tab is enabled in your word processor so you can access the VBA macro editor, and save a backup of your document before running any custom scripts.
Use Document Variables and a VBA Macro
Combine DOCVARIABLE fields with a custom VBA macro to dynamically update and print sequential numbers on each copy.
By default, word processors do not have a built-in feature to sequentially number identical printed copies. However, you can achieve this by inserting dynamic document variable fields and using a VBA macro to update those fields before sending each copy to the printer.
Click where you want the numbers to appear. Press Ctrl+F9 to insert curly brackets. Type DOCVARIABLE Copy inside the brackets. Type a slash (/), then press Ctrl+F9 again and type DOCVARIABLE Copies. Your document should show { DOCVARIABLE Copy } / { DOCVARIABLE Copies }.
Press Alt+F11 on your keyboard to open the Visual Basic for Applications (VBA) editor.
In the VBA editor, click on Insert in the top menu bar and select Module. A blank code window will appear.
In the module window, you need to write a script that prompts the user for the total number of copies, uses a loop to update the 'Copy' and 'Copies' variables for each iteration, updates the document fields, and then calls the ActiveDocument.PrintOut command.
Close the VBA editor. Press Alt+F8 to open the Macros dialog box, select your newly created print macro, and click Run. Enter the number of copies when prompted to start the sequential printing.

Automate Your Print Jobs Efficiently with WPS Writer
WPS Writer offers robust support for complex document fields and VBA macro automation, allowing you to easily manage advanced printing tasks like sequential copy numbering without hassle.
- 1. Open Your Document: Launch WPS Writer and open the document you wish to prepare for sequential printing.
- 2. Insert DOCVARIABLE Fields: Press Ctrl+F9 to quickly insert the required document variable fields for your copy numbering format.
- 3. Run Custom Macros: Access the Developer tab to open the VBA editor, paste your sequential print script, and execute it directly within WPS Office.

Frequently Asked Questions
Why are my inserted fields showing as code instead of numbers?
You are currently viewing the field codes. You can toggle between displaying the raw field codes and the actual field results by pressing Alt+F9 on your keyboard.
Can I print sequential numbers without using a VBA macro?
While VBA is the most direct method for this specific task, an alternative workaround is to use the Mail Merge feature. You can create a simple Excel spreadsheet containing numbers 1 through your total copy count, and merge that data into your document as a numbering field.
Will this macro permanently change my document?
The macro only updates the document variables and prints the pages. However, the variables will retain the last assigned numbers after the macro finishes. You can simply save and close the document without saving changes if you prefer to keep it in its original state.




