Transferring Bookmark Contents Between Files

V

vicw

I have a Form Template that I distribute for use by our sales force. They
complete the form and return, but also keep a copy for future use when
creating documents for the same customer. The template allows them to open a
document and re-use the content.

The problem comes when the template is updated and new fields (and
bookmarks) are added. The "old" forms become useless unless I can get the
contents of the bookmarks from the "old" docs to a new doc created from the
updated template.

I am limited to using Word 2003 VBA. What is the best way to handle this
problem?
 
H

Helmut Weber

Hi,

there are two kinds of bookmarks.
Ones that look like !bookmark, others that look like [bookmark].
Both have a range.text. But the range of the first kind is empty.
The text of the second kind is bookmark("Mark1").range.text, e.g.


Greetings from Bavaria, Germany

Helmut Weber, MVP, WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 

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