>Am using Word2000 w/ Win98 and VFP6.
>
>A user has sent me an MSWord doc which contains bookmarks. A VFP program runs that performs bookmark substitution using the doc. If i use their doc and run the program, all works well. If they run the program using the same worddoc, the bookmark is not replaced, but the data value that is to replace the bookmark is output to the left of the bookmark.
>
>For example, take the following like in a worddoc:
>
>Your account number is [ACCOUNTNUM].
>
>If i run the program, the worddoc looks like:
>
>Your account number is 123456.
>
>If they run the program, the worddoc looks like:
>
>Your account number is 123456ACCOUNTNUM.
>
>Any ideas?
Open their unchanged document in Word -- the document that just has [ACCOUNTNUM]. On the menu click Insert, then Bookmark. Find that bookmark in the list, click on it, the click the GoTo button. The entire string [ACCOUNTNUM] should then be selected. If not, click Cancel button. In the document, select the entire string. Click Insert, Bookmark again. Make sure the correct bookmark is selected, then click the Add button. Save the document.
Mark McCasland
Midlothian, TX USA