Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace in word header
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 7
Miscellaneous
Thread ID:
01085969
Message ID:
01085976
Views:
31
You're a star - many thanks

>- 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
Caroline
Previous
Reply
Map
View

Click here to load this message in the networking platform