Template Issues

How to Create Sequential Word Labels with Text and Barcodes

Chanuka GeekiyanageChanuka Geekiyanage Nov 2, 2026 871 views

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.

How to Create Sequential Word Labels with Text and Barcodes
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.
Before you start

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.

Solution 1Recommended

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.

1
Create Sequential Data in Excel

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.

2
Set Up the Word Label Template

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

3
Connect the Data Source

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.

4
Insert Text and Barcode Fields

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.

5
Update and Finish Merge

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.

Adjusting Barcode Height: If you need to change the size of the generated barcode, you can add the optional \h switch to the field code (for example: { MERGEBARCODE Number CODE128 \h 50 }) to control its height.
Efficient Label Generation

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. 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. 2. Start Mail Merge in WPS Writer: Open WPS Writer, navigate to the References tab, click Mail Merge, and select your label layout.
  3. 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. 4. Complete the Merge: Use the Merge to New Document option to preview all your sequential labels and print them instantly.
Free, lightweight, and fast office suiteFully compatible with Microsoft Word (.docx) and Excel (.xlsx) formatsRobust built-in Mail Merge feature for batch processing labelsFamiliar user interface makes transitioning incredibly easy
microsoft office alternative - wps office

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.