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 Bookmark and Share
TheForumSurgeon

How to perform a mail-merge from Excel to Word using 2D barcodes

I am using your 2D barcode fonts (Data Matrix) and I can encode the data in Excel using your Barcode Add In but the mail merge is incorrect. I made sure to apply the barcode font after the merged field but I there are characters after the barcode, _x000D_


Application: Mail Merge (Excel and Word)

07-18-12     2554 day(s) ago    

  Report Abuse

 

Ben

Best Answer

Note: an additional support solution is also available that removes the _x000D_ character from appearing in the Word merge result.


I will provide instructions from beginning to end on how to generate a barcode from Excel to Word for Mail Merge using 2D barcode fonts (Data Matrix) and the Barcode Add In. The _x000D_ is caused when Word cannot properly interpret the carriage return. It is possible to use the SUBSTITUTE function in Excel to correct the issue.

DOWNLOAD AND INSTALL
1. Download and install the 2D barcode package. In the example, I will use Data Matrix.

Other 2D barcode types:
Aztec
QR Code
PDF417
Maxicode

2. Download and install the Barcode Add In for Excel.

Download the Add-In directly.



EXCEL
3. Open Excel and ensure that the Add-Ins tab is visible.
image



If not, the VBA Method is an option to generate the 2D barcode.

4. Add the data to the spreadsheet.
image

5. To have a column that displays the original data, then set another column equal to your original column. In the example, Column B equals Column A.
image

6. Prepare to encode the data by selecting the cells in Column B.
image

7. Select the Add-Ins tab.
image

8. Select the barcode type to encode--the tutorial uses Data Matrix--and choose Change To Barcode.
image

The data in Column B will be encoded.
image

9. To avoid the _x000D_ issue that may occur in the Mail Merge, apply the Substitute function and replace the carriage return. =SUBSTITUTE(EncDM_Ascii(A2), CHAR(13),"")

NOTE: EncDM_Ascii is specific to Data Matrix. For example, PDF417 is =IDAutomation_PDF417_click. When used with the substitute function, it would be =SUBSTITUTE(IDAutomation_PDF417_click(A2), CHAR(13),"")

image

WORD
10.Open Word and perform a Mail Merge. Users inexperienced with Word should use the Mail Merge Wizard or visit the Microsoft Office Website.

11. During the Mail Merge Recipients step, the _x000D_ in the encoded data should no longer appear.
image

12. Insert the Merge Fields.
image

13. When the Barcode field is merged, spaces may appear between the encoded data.
image

Choose the No Spacing option in the Home tab.
image

The encoded data should appear correct.
image

14.Apply the barcode font to the field. In the example, the IDAutomationDMatrix (or the IDAutomation2D.ttf) barcode font is applied.
image

Posted 2554 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 2019 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