- run Word
- ALT+F11
- click to button "Object browser" (F2)
- select Word Library in first combo
- select object Find in listbox (left)
- select method execute in listbox (right)
MartinJ
>Many thanks Martin that worked a charm.
>Do you know of a good place for me to check for the exact syntax of the Execute command (ie exactly what those parameters relate to).
>Thanks
>Caroline
>
>>Hi Caroline,
>>
>>
>>
>>=loFile.Sections(1).Headers(1).Range.Find.Execute("searched text",.F.,.F.,.F.,.F.,.F.,.T.,1,.F.,"replaced text",2)
>>
>>
>>MartinJ
>>
>>>Hi,
>>>Can anyone give me a simple example of how I do a Find and Replace in word that will act on the
Header of the document. I am using VF7 and Word2000.
>>>
>>>Many thanks