GithubHelp home page GithubHelp logo

bdr76 / barcode128.bas Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 6.0 62 KB

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

VBA 100.00%
barcode barcode-generator

barcode128.bas's Introduction

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 ([email protected])

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.