Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MS Word
Message
De
25/09/2000 13:13:37
Liam O'Hagan
O'Hagan Programming Ltd
Irlande
 
 
À
25/09/2000 12:54:39
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00420479
Message ID:
00420531
Vues:
27
Hi Mark,

wdFindContinue = 1
wdReplaceAll = 2
cReplaceText = the text you want to insert in place of the cFindtext string

You will find these and all other MS WOrd 2000 constants in the files section.

Liam



>>Hi Mark,
>>
>>Do you mean search and replace a piece of text in a doc with an account number from a DBF? If so, the following works for me.
>>
>>oWord.Selection.Find.Execute(cFindText, .F., .T., .F., .F., .F., .T., wdFindContinue, .F., cReplaceText, wdReplaceAll)
>>
>>Parameters: FindText, MatchCase, MatchWholeWord, MatchWildcards, MatchSoundsLike, MatchAllWordForms, Forward, Wrap, Format, ReplaceWith, Replace
>>
>>HTH
>>
>>Liam
>>
>>
>>>I have a word doc with general account information. An account number is repeated in several places. I'd like to populate those with account number from VFP. I dont like to create multiple bookmarks (can be too many). MailMerge is not an option. What would be the best scenario?
>>>Thansks Mark
>If my text is in a footer will global replace work?
>Thanks Mark
Liam O'Hagan
MCP VFP Desktop Apps
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform