Results 1 to 2 of 2
2001-05-09, 16:28 #1
- Join Date
- May 2001
- Thanked 0 Times in 0 Posts
Create barcode for window envelope via VBA - Word
Word 97: Without success, I have been trying to add a barcode to the address of a letter (letter and barcode created via VBA code.) The barcode would be used with window envelopes to meet US postal barcode requirements. I've used the wdFieldBarCode but keep getting "99" designating that Word cannot interpret the address to generate a valid code. I am trying to pass both the address and the zip code as variables. If anyone can head me in the right direction, I would appreciate it!
2001-05-11, 07:46 #2
- Join Date
- Jan 2001
- Sun Prairie, Wisconsin, Wisconsin, USA
- Thanked 113 Times in 110 Posts
Re: Create barcode for window envelope via VBA - Word
The way Word uses the barcode field is to put a bookmark around the last couple of lines of the address in the envelope. You can also put the zip code directly into the field, in quotation marks, and get rid of the bookmark switch in the field.
You may want to download a <A target="_blank" HREF=http://www.addbalance.com/word/download/envelopetutorial.zip> tutorial</A> that I slapped together to help answer another question about envelopes. It isn't finished so it isn't listed on my download page but it should help.
It has a formatted envelope with a barcode field on the bottom and also has an
explanation of the EnvelopeExtra AutoText entries in letterhead. When I get it finished, it will be listed with the other downloads on <A target="_blank" HREF=http://www.addbalance.com/word/download/index.htm>http://www.addbalance.com/word/download/index.htm</A>.
Hope this helps,Charles Kyle Kenyon