How to creating barcodes in Excel using Universal Fonts?

How to create barcodes using the Universal Font Package or Code 128 Universal Fonts in Excel 2013?

Operating System:
Windows

Application:
Excel

03-03-14 1625 day(s) ago
Views: 2891

Report Abuse

Ben

Best Answer

To create barcodes using a font, two components are required:
(1) Barcode Font
(2) Font Encoder

A font encoder is a component that takes the data that will be converted to a barcode and formats it into another form of data that the barcode font can understand. The IDAutomation Universal VBA Macros is a font encoder included in the Universal Font Package or Code 128 Universal Font Package that encodes data for Excel and Access. This tutorial uses Excel 2013 as an example.

4. After the font package installs, navigate the package to the VBA folder. This includes the IDAutomation_UniversalFont_VBA.bas that will be imported into Excel's Visual Basic Editor. Remember the location of the file.(Edited 2/27/2017)

7. To import the IDAutomation_UniversalFont_VBA.bas, select File--Import File and navigate the VBA folder in the Universal Font Package.

8. The Universal VBA is placed in the Modules folder.

NOTE: Only import one instance of the IDAutomation_UniversalFont_VBA. If multiple IDAutomation_UniversalFont_VBA files (with the same file name) are in the modules folder, an "ambiguous name error" with #NAME will occur.

9. Select File--Close and Return to Microsoft Excel.

_____________________________________________________________

HOW TO ENCODE THE DATA AND CREATE THE BARCODE

Let's create a Code 128 barcode.
(1) Enter data into cell A2.

(2) In column B2, enter the formula =IDAutomation_Uni_C128(

(3) Enter the Cell reference and parenthesis.

(4) To encode the data, press return.

NOTE: If you are NOT generating Intelligent Mail (Tracing) and you receive a Compile error:The code in this project must be updated for use on 64-bit systems. Please review and update Declare statements and then mark them with PtrSafe attribute

return the Visual Basic editor and comment out the code in red using ' from: