Hi Cetin,
As usual you come through! Thanks
Peter
>>I have to fill in the fields in a word doc. The document is protected with theexception of the fields.
>>I use the bookmark and do the following (Which does not work. It tries to write AFTER the field)
>>
>>
>>oBKM=thisform.oWord.ActiveDocument.Goto(-1,,,"Text1")
>>oBkm.InsertAfter(myCursor2.Inp)
>>
>>
>>it fails because the space AFTER the field is protected.
>>
>>how can I fill in the fields?
>>
>>Thanks
>>
>>Peter
>
>Peter,
>Directly use the formfields collection :
>
>oWord.Activedocument.FormFields('Text1').Result = 'Peter'
>oWord.Activedocument.FormFields('Text2').Result = 'Cortiel'
>
>Cetin
Peter Cortiel