New User? Sign Up  |  Sign In  |  Help
Barcode support and
tutorials from IDAutomation
and the community.
Click for the BBB Business Review of this Computers Hardware, Software & Services in Tampa FL
Resolved Questions

How to create an HIBC Code 128 Primary and Secondary Barcode in Excel

with Code 128 fonts and the IDAutomationVBA font encoder?


Application: Excel

12-06-13     10.8 year(s) ago    

  Report Abuse

 

Ben

Best Answer

The post explains how to create HIBC barcodes with the Code 128 Font Package and the IDAutomationVBA Font Encoder (version 2013 and up)

DOWNLOAD AND INSTALL CODE 128 FONT
1. Download the Demo or purchase the Sale version of the Code 128 Fonts.


2. Locate the downloaded file. Right-click the file and choose Extract.
image


3. Navigate through the extracted folder and run the IDAutomation_C128FontAdvantage.exe file. This will install the necessary font files.
image



DOWNLOAD AND IMPORT THE VBA FONT ENCODER
4. Download the IDAutomation VBA Macros and import the VBA into Excel https://support.idautomation.com/Barcode-Fonts/How-to-download-and-import-the-IDAutomation-VBA-for-Excel/_1221

To generate the HIBC Primary and Secondary barcodes, IDAutomation includes three parameters ReturnTypes 10, 11, and 12.

. ReturnType 10 encodes data for the HIBC Primary barcode.

. ReturnType 11 produces the MOD43 check character in the Primary barcode.

. ReturnType 11 encodes data for the HIBC Secondary barcode.




CREATE PRIMARY BARCODE
5. Once the Macro is imported into Excel, add the Primary barcode data: B123120001 into Cell B2.
image


6. In cell C2, enter the formula =Code128(B2,10,False). Return Type 10 is the second parameter. The function will handle the data in B2 by adding the HIBC prefix symbol, a "+", and calculate the MOD43 check character before encoding the data as Code 128. image


7. To encode the data, press return.
image


8. Select the encoded cell, then select or enter the font IDAutomationC128M in the font list of Excel.
image


9. The HIBC Primary barcode with the barcode font applied:
image
scans as: +B123120001J




CREATE PRIMARY CHECK CHARACTER IN SEPARATE CELL
The MOD43 check character produced in the Primary barcode must be inserted into the DataToEncode of the Secondary barcode. IDAutomation includes a ReturnType 11 option that allows the user to display only the check character so that it can be appended to the secondary DataToEncode.

10. To produce the check character, enter the Primary barcode Data: B123120001 into Cell B3.
image


11. In cell C3, enter the formula =Code128(B3,11,False). ReturnType 11 only returns the MOD43 check character in normal text, such as Arial.
image


12. To produce the MOD43 check character, press return.
image



CREATE SECONDARY BARCODE
13. Add the Secondary barcode data: 01181234555
into Cell B4.
image


14. In cell C4, enter the formula and include the cell B4 (the secondary data) and C3(the primary barcode check character which must be part of the secondary DataToEncode) =Code128(B4&C3,12,False). Return Type 12 is the second parameter. The function will automatically add the Secondary barcode prefix, "+$$+" to the DataToEncode. It will also calculate the MOD43 check character before encoding the data as Code 128.
image


15. To encode the data, press return.
image


16. Select the encoded cell, then select or enter the font IDAutomationC128M in the font list of Excel.
image


17. The HIBC Secondary barcode with the barcode font applied:
image
scans as: +$$+01181234555J%

Posted 10.8 year(s) ago

(0)
(0)
  Report Abuse
 
Find Interesting
 
Email to Others
 
Bookmark
 
Subscribe to Answer Alert
No comments yet.     Be the first to comment.

Email this question link to friends
You must enter an email address, if name is entered or vice-versa for each friend.
Friend #1 -
Friend #2 -
Friend #3 -
Friend #4 -
Friend #5 -
  Your comment on this question
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must starts with "http://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always starts with " http:// ")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 Characters are allowed. Current Count: 0
  Your comment on this answer
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allow you to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must start with "http://" or "https://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always start with "http://" or "https://")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 characters are allowed. Current Count: 0

You may answer and comment on any thread according to the Terms and Conditions.

 © Copyright 2021 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us
Training Videos on YouTube Join us on Google Plus Join us on LinkedIn Follow us on Twitter Like us on Facebook