How to Create Sequential Word Labels with Text and Barcodes
Question details
The user needs a method to generate a batch of sequential labels in Word, where each label displays a sequential text value along with its matching barcode.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Setting up a document template to print multiple tracking, inventory, or mailing labels with automated sequential numbers and scannable barcodes.
- Observed behavior
- Requires an automated solution to populate sequential text and generate corresponding barcode images simultaneously without manual data entry for each label.
Ensure you have a spreadsheet application to generate your sequential data list and a word processor that supports the Mail Merge and dynamic field code features.
Use Excel AutoFill and Word Mail Merge
Combine Excel's AutoFill functionality to generate the sequential numbers and Word's Mail Merge feature with the MERGEBARCODE field to create the labels.
By preparing your sequential data source in a spreadsheet first, you can easily map it to a label template in your word processor. Using the dynamic MERGEBARCODE field ensures that each printed label generates a precise, scannable barcode based on that sequential data.
Open Excel and enter a header like 'Number' in cell A1. Type your starting value (e.g., 'TC0167') in cell A2. Click and drag the fill handle at the bottom-right corner of cell A2 down the column to automatically generate your sequential values. Save the file.
Open Word, go to the 'Mailings' tab, click 'Start Mail Merge', and select 'Labels'. Choose your desired label vendor and product number, then click 'OK'.
Still on the 'Mailings' tab, click 'Select Recipients' and choose 'Use an Existing List'. Browse to and select the Excel file you saved in step 1.
Click 'Insert Merge Field' and select 'Number' to add the text. Next to it, press Ctrl+F9 to insert empty field brackets. Inside the brackets, type 'MERGEBARCODE Number CODE128'. Press Alt+F9 to toggle the field codes and view the standard layout.
Click 'Update Labels' in the Mailings tab to copy your layout to all the other labels on the sheet. Finally, click 'Finish & Merge' to generate your document containing the sequential text and barcodes.
Create Sequential Labels Seamlessly with WPS Office
You can quickly handle bulk label creation by using WPS Spreadsheet for sequential data generation and seamlessly merging it into WPS Writer. WPS Office provides a streamlined Mail Merge tool that handles bulk formatting effortlessly.
- 1. Prepare Data in WPS Spreadsheet: Open WPS Spreadsheet, type your starting value, and drag the AutoFill handle to create a sequential list. Save your spreadsheet.
- 2. Start Mail Merge in WPS Writer: Open WPS Writer, navigate to the References tab, click Mail Merge, and select your label layout.
- 3. Link Data and Customize: Click Open Data Source to link your saved spreadsheet. Insert the merge fields and format your text and barcode font as needed.
- 4. Complete the Merge: Use the Merge to New Document option to preview all your sequential labels and print them instantly.

Frequently Asked Questions
Why am I seeing field codes instead of the actual barcodes?
Word might be set to display field codes instead of their results. You can easily toggle between the field codes and the generated barcode images by pressing Alt+F9 on your keyboard.
Can I generate QR codes instead of traditional barcodes?
Yes. Inside the field brackets, you can change the barcode type parameter. Replace 'CODE128' with 'QR' (e.g., { MERGEBARCODE Number QR }) to generate a QR code for each sequential value.
Do I need to install a special barcode font to use MERGEBARCODE?
No, the MERGEBARCODE field code in modern word processors dynamically renders the barcode as an image graphic based on the specified standard, so no third-party barcode fonts are required.
Why did the 'Update Labels' button gray out?
The 'Update Labels' button only becomes active if your document is specifically set up as a 'Labels' mail merge type. Ensure you selected 'Labels' from the 'Start Mail Merge' dropdown menu initially.




