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 Code 128 barcodes in Excel on Mac?

How to generate 1D barcodes on Mac using Universal Fonts or the Code 128 Fonts for Mac. The Universal Fonts can create 1D barcodes including Code 39, Code 128, and Interleaved 2 of 5.

To create UPCa. UPCe, EAN8, or EAN13, use the UPC/EAN Font Package and VBA file. The IDAutomation_OfficeVBA/MAC VBA folder includes .rtf files for EAN and UPC.
The font for this solution is named IDAutomationUPCEANL or IDAutomationSUPCEANL (demo font).


03-17-15     9.4 year(s) ago    

  Report Abuse

 

Ben

Best Answer

NOTE: A new product is now available since this issue was resolved that offers a better way to generate barcodes in Excel on Windows and Mac, the IDAutomation Native Generator for Excel.


NOTE: Before getting started
Unlike fonts such as Times New Roman, Arial, and Courier New, barcode fonts require an extra step to ensure that the created barcode is scannable/usable.

In order to create a scannable barcode, data must pass through a formula called a font encoder or font tool. A font encoder can be a plug-in, add-in, formula, or source code that performs a calculation to produce encoded data.


The standard Code 128 Font Package encoders do not properly format data on Mac due to a conflict between Mac's Roman Character set and the Code 128 font encoder. IDAutomation has another solution for creating Code 128 barcodes in Excel 2004, 2008, and 2011 for Mac.


1. Download the demo or purchase and install the Code 128 for Mac or the Universal Font Package.

Because Excel 2008, does not include VBA, consider using the AppleScript solution with the Universal or Code 128 Mac Fonts.

How to install fonts on Mac?


2. Open the RTF file for the barcode type to create. The RTF files are included in the font package and are the encoders designed for Excel. Copy the code.
image image
If not able to locate the RTF files, contact IDAutomation's technical support.


3. Run Excel.


4. Select Tools - Macro - Visual Basic Editor.
image image


5. Select Insert - Module.
image


6. Paste the code copied from the RTF file into the module.
image


7. Select Debug - Compile VBAProject.


8. Select Excel - Close and Return to Microsoft Excel.


9. Example to create Code 128. Enter the formula in lowercase:
In Cell A1, enter 1234567890.
In Cell B1, enter =idautomation_uni_c128(A1,False)


10. Press return. The encoded data appears in uppercase letters.
EBJAFJCAGKAEHABEMEBNAGIAH


11. Right-click the column and select Format Cells.
image

12. Select the Font tab.
image


13. In the Font options, select the IDAutomation Uni barcode font. Example IDAutomation Uni XS or IDAutomation Uni M.
image


14. Select OK.


ENCODING OTHER SYMBOLOGIES
(functions list) View the section 'Functions for the Universal Barcode Font'

Code 128 Auto:
=idautomation_uni_c128("123456", TRUE)

Code 128 A
=idautomation_uni_c128a("ABCD123456", TRUE)

Code 128 B
=idautomation_uni_c128b("abcd123456", TRUE)

Code 128 C
=idautomation_uni_c128c("123456", TRUE)

Interleaved 2 of 5
=idautomation_uni_i2of5("123456",3, TRUE)

Code 39
=idautomation_uni_c39 ("123456789", 3, TRUE )

Codabar
=idautomation_uni_codabar ("123456789", 3,"A","B" )

UPCa
=UPCa()

UPCe
=UPCe()

Posted 9.4 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