I am automating a Word document from MS Access. I have set a bookmark named
"ZipCode" defined as "00000-0000" in the Word Document.
From Access I replace the value of "ZipCode" with a database value from
Access.
When I do this the "ZipCode" bookmark is defined as a point at the end of
actual zip code. I need "ZipCode" to remain defined as the actual zipcode in
order for the postnet Barcode to work. Barcode is defined as {BARCODE
ZipCode \b\u }
Is there a way to keep ZipCode from redefining?
Dave Lett - 15 Jul 2005 14:00 GMT
Hi Al,
You need to do a little reading up on Placeholder and Enclosing bookmarks.
Have a look at the article "Working with Bookmarks in VBA" at
http://word.mvps.org/faqs/macrosvba/WorkWithBookmarks.htm
HTH,
Dave
>I am automating a Word document from MS Access. I have set a bookmark
>named
[quoted text clipped - 10 lines]
>
> Is there a way to keep ZipCode from redefining?
Helmut Weber - 15 Jul 2005 14:22 GMT
Hi Al,
see:
http://www.word.mvps.org/FAQs/MacrosVBA/InsertingTextAtBookmark.htm
see also:
http://www.word.mvps.org/FAQs/MacrosVBA/WorkWithBookmarks.htm
Greetings from Bavaria, Germany
Helmut Weber, MVP, WordVBA
Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"