Skip to content

A barcode 128 encoding macro for LibreOffice Calc or Excel, to print EAN CODE 128 barcodes and scan with handscanner

Notifications You must be signed in to change notification settings

BdR76/barcode128.bas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

barcode128.bas

Barcode128 Encoded is a macro function for LibreOffice Calc or Excel to encode texts for use with a barcode 128 font.

LibreOffice barcode 128 encoded texts

To create a barcode that can be read by a handscanner, it is not enough to just change the font to a barcode font. See the screenshot above; the texts or product codes (column A) must first be encoded (column B), and then the barcode 128 font is applied to the encoded texts (column C).

This results in a compact barcode, using as little space as possible, especially when the text contains just digits. For more information see Wikipedia.

How to use

  1. Open LibreOffice Calc
  2. Go to Tools > Macros > Edit macros
  3. Go to File > Import Basic and import the .bas file
  4. Go to sheet cell A1, paste a product code
  5. In cell B1 type the formula =BARCODE128_ENCODED(A1)
  6. Set font of cell B1 to Barcode 128 font and increase text size

Barcode font

Use the Libre Barcode 128 font on the encoded texts to print scannable barcodes.

History

2020-mar-30 upload to github

Questions, comments -- Bas de Reuver (bdr1976@gmail.com)

About

A barcode 128 encoding macro for LibreOffice Calc or Excel, to print EAN CODE 128 barcodes and scan with handscanner

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages