Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / July 2005

Tip: Looking for answers? Try searching our database.

Bookmark Range Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Al - 15 Jul 2005 13:03 GMT
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"
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.