Earn Points & Redeem with attractive offers!
You can earn points, by asking, answering, voting questions and redeem with
attractive offers
. To view various available redemption schemes, please visit
"My Profile".
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
Ask
Ask a question. Make sure you select the correct category for the question.
Answer
Like to help others? Then browse through the open questions to answer their questions.
Find
Find answer by browsing the resolved questions.
     
Search for Questions:
My Profile

Ben

Resolved Questions Bookmark and Share

How to encode QR Code Barcodes using VBA in Excel?

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     1579 day(s) ago     Views: 20760

    Report Abuse

 

Ben

Best Answer

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 the spreadsheet. In the example, data in column A2 will include the data to convert to the barcode. A formula will be written in B2 to produce the encoded data.

image



3. Minimize Excel and locate the VBA file named IDAutomation_QRCodeVBA.bas. It is located in a path similar to:
image

***NOTE: If working with the package updated 2-2015, there is a new VBA file named “IDAutomation COM DLL VBA for QRCode.bas ” located within the IDAutomation QR Code Font Package:

image


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_QRCodeVBA.bas.

***NOTE: If working with the package updated 2-2015, import the :
IDAutomation VBA for QR-Code.bas



image

The VBA file will appear in the Modules folder.



7. 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 =EncQR and reference cell A2 to encode the data.

image


***NOTE: If working with the package updated 2-2015, the new function name is:
=IDAutomation_QRFontEncoder


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



10. Save the file.


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 generate the barcode the encoded file must be used in a mail merge/data merge. 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(EncQR(A2), CHAR(13),"")



Posted 1579 day(s) ago

()
()
  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 2017 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