How do I replace one character with another in the field code resu

A

AWordInNeed

I have a Word document that has Code39 bar codes on it. These bar codes are
actually mergefields that are formatted to the bar code font. The results for
this field may contain spaces between the strings of text. These spaces do
not automatically translate to a space in the barcode. The spaces must be
replaced with "!" which the bar code will then translate to a space which is
then scannable by our equipment. I cannot insert the "!" into the data source
itself. It must be done when the document is generated. The document is
automatically generated by an inventory tracking system. It is generated
using a Word template. How can I accomplish this? How do I replace one
character with another in the field code results?

Please note that I am using Word 2002 on the XP platform.
 
D

Doug Robbins

You may need to merge to an intermediate catalog or directory type mailmerge
document, then use edit replace to replace the spaces with "!", the add a
row at the top of the table to hold the names of the fields and save and use
that document as the source for your final mailmerge.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top