Printing Problems

How to Print Sequential Copy Numbers in Word

Khadija KhanKhadija Khan Nov 3, 2026 868 views

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).

How to Print Sequential Copy Numbers in Word
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.
Before you start

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.

Solution 1Recommended

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.

1
Insert Document Variable Fields

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 }.

2
Open the VBA Editor

Press Alt+F11 on your keyboard to open the Visual Basic for Applications (VBA) editor.

3
Insert a New Module

In the VBA editor, click on Insert in the top menu bar and select Module. A blank code window will appear.

4
Create the Print Macro

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.

5
Run the Macro

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.

Use Document Variables and a VBA Macro
Field Errors Before Printing: If your fields show an error like 'Error! No document variable supplied' after inserting them, do not worry. The VBA macro will automatically assign values to these variables and update the text during the printing process.
Advanced Document 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. 1. Open Your Document: Launch WPS Writer and open the document you wish to prepare for sequential printing.
  2. 2. Insert DOCVARIABLE Fields: Press Ctrl+F9 to quickly insert the required document variable fields for your copy numbering format.
  3. 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.
Fully compatible with Microsoft Word DOCX formats and field codesSupports advanced document variables and custom field combinationsIntuitive developer tools for managing and executing custom VBA macrosLightweight software footprint with fast document rendering and printing
microsoft office alternative - 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.