X of Y Serialization Follow

Eric Myers

There may be a need to add box serialization in the form of "Box 1 of x" to your label. BarTender has an object called the "X of Y" component that uses Visual Basic Script for this purpose. 

With BarTender open, choose the Components ToolBox. If this is not visible, choose the View menu and enable Components in the ToolBox area.




In the ToolBox, expand the Serialization folder. Look for Label X of Y.



Note: If you do not see the components listed, they may not be installed on your system. In BarTender 2016, components were an optional install. You will need to modify your install by selecting BarTender on your Programs and Features list and choosing modify. Check the Sample Documents checkbox and click next on the dialog to install the samples and components.

Equally, you can place the Component X of Y in the following folder: My Documents/BarTender/Components

Drag the X of Y component onto the label. The component is now ready for use, but you may want to customize the text to meet your needs. Open the component properties and examine the data sources. You can modify the "Label" Data Source, but do not modify the other data sources or you risk breaking the component.




The component is controlled through the serialization transform, or from within the print dialog.




Set the Serialization option to your maximum Y count, i.e. x of 500, and select print. The labels will  print with your incrementing value until it reaches the high number of the serialized value.

You can download the final document here: XofYsample.btw 


Ralph Haney
Comment actions Permalink

This is a real time saver and valuable for the "Pallet License Plate" I'm building. Works great, thanks.
Question: Slim VB scripting experience here; how can I get the current "x of y" value embedded into my DataMatrix barcode? My DM code currently unpacks several values into an Excel row and the manager would love to see the pallet number ( for example, "3 of 5" ) in a column in his spreadsheet.
Scan 1/Row 1 = "1 of 5"
Scan 2/Row 2 = "2 of 5"
Scan 3/Row 3 = "3 of 5" etc.

Each row may have differing lot codes so it would be helpful to know which # of 5 was that row/pallet. Make sense?

- Ralph

Please sign in to leave a comment.