I'm pretty sure. If I open the document and choose "Go To Bookmark" the entire text in the bookmark is highlighted/selected.
UPDATEI have got around the problem for now. The bookmarks were in a table, I deleted the table and recreated the bookmarks and things seem fine now. I had previously deleted and recreated the bookmarks only and that hadn't worked, so my current theory is there was something strange with the table the bookmarks were in.
>Are you sure you don't have 'al' next to bookmark?
>
>>
>>using VFP 9 SP2 and Word 2002.
>>
>>I've set up numerous bookmarks in a word document and use code like this to replace bookmarks with the values I need.
>>
>>
>>
FOR lnCount = 1 TO m.lnCountMarks
>> m.lcMarkName = UPPER(laMark[lnCount])
>>
>> WITH m.loDoc.Bookmarks(m.lcMarkName).RANGE
>>
>> DO CASE
>> CASE m.lcMarkName == "EMPTOTAL"
>> .TEXT = TRANSFORM(m.lnEnrolmentTotal, "@R 9,999,999")
>>
>>When I look at the resultant document I get a value like this:
>>
>>2al
>>
>>This is leaving the last two characters from EmpTotal as part of the .Text. When I step through the code, this:
>>
>>TRANSFORM(m.lnEnrolmentTotal, "@R 9,999,999") = " 2"
>>
>>and when the assignment taakes place, then
>>
>>.Text = " 2al"
>>
>>What!!!???
>>
>>I have this working for about 20 other bookmarks but only these 4 are doing this.