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 encode QR Code Barcodes using VBA in Excel using QR Code Fonts?

The tutorial explains how to encode data in Excel using the QR Code Font Encoder VBA.

The QR Code Font Encoder VBA is included in:

QR Code Font and Encoder Package

Universal 2D Font Package

IDAutomation offers a 2D XLS Font for Excel; however, it does have some limitations. It is compatible with Data Matrix, QR Code, PDF417, and Aztec. Microsoft Excel may also be used as a data source for the font; however, it is difficult to use 2D fonts in Excel because of the encoded data's line feeds and carriage returns. Excel does not always handle these characters in a cell correctly.

image

Operating System: Windows

Application: Excel

09-26-13     10.4 year(s) ago    

  Report Abuse

 

Ben

Best Answer

Tutorial Updated 10/23/2020: New VBA and Formula Name

1. Download and install a font package that includes QR Code. The package installs the necessary encoders. To generate barcodes directly in Excel, download and install the IDAutomation 2D XLS Font


2. Open Excel and set up a spreadsheet.

image


3. Minimize Excel and locate the VBA file IDAutomation_QR_FontEncoder_VBA_DEMO.bas or
IDAutomation_VBA_QRCodeFE2021.bas. It is located in a path similar to:
DEMO
image

LICENSED
image

For previously released versions, run a search on your system for .bas
IDAutomation COM DLL VBA for QRCode.bas or IDAutomation_QR_FontEncoder.bas


4. Maximize Excel and select the Developer Tab.

image



5. Select Visual Basic to enter the Editor.
image



6. To import the VBA file select File -- Import File then search for and select the IDAutomation_QR_FontEncoder_VBA_DEMO.bas or
IDAutomation_VBA_QRCodeFE2021.bas.
image

The VBA resides in the Modules folder.


7. If using the IDAutomation_VBA_QRCodeFE2021.bas, skip this step. Select Tools -- References and search for the QR Code encoder. Choose OK.
image


8. Select File and choose Close and Return to Microsoft Excel.
image


9. In cell B2, enter the formula =IDAutomation_QRCode_FontEncoder_DEMO() or =IDAutomation_QRCode_FontEncoder() depending on version and reference cell A2 to encode the data.
image


The encoded data for QR Code should appear as several alpha characters.



10. Save the file as an XLSM.


GENERATE BARCODE IN EXCEL

(1) Apply the IDAutomation2D XLS font.

(2) Right-click the column and choose Format Cells.
image

(3) Select the Alignment tab and then check Wrap text.
image



HOW TO MAIL MERGE
To display the barcode in a Word mail merge, import the encoded data. Video Example of 2D mail merge. The only difference between the video and this tutorial is that the video uses the Barcode Add-In encoder and Data Matrix. Begin the video at 2:35.
Video Example

CARRIAGE RETURN ERROR
After merging the data into Word, a group of characters, such as _x000D_, may appear at the end of the merged data. To resolve the issue, return to Excel and implement the SUBSTITUTE function.

Example:

=SUBSTITUTE(IDAutomation_QRCode_FontEncoder_DEMO(A2), CHAR(13),"")

or

=SUBSTITUTE(IDAutomation_QRCode_FontEncoder(A2), CHAR(13),"")

Posted 10.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