Results 1 to 2 of 2
  1. #1
    New Lounger
    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!

  2. #2
    Silver Lounger Charles Kenyon's Avatar
    Join Date
    Jan 2001
    Sun Prairie, Wisconsin, Wisconsin, USA
    Thanked 128 Times in 123 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=> 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=></A>.

    Hope this helps,
    Charles Kyle Kenyon
    Madison, Wisconsin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts