Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word: find and replcae
Message
De
24/10/2000 10:13:32
 
 
À
24/10/2000 10:04:50
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00433444
Message ID:
00433456
Vues:
14
Maybe it's just a typo here, Peter, but you are trying to find "% MARKET" and replace it with "% MARKET"....that would be a good reason nothing is happening.

>automation with word:
>replace does not work for meI have a report in with I want to replace all instances of MARKET with the same word only underlined.
>I have the following code:
>
>WITH oRange.FIND
>.ClearFormatting
> .Replacement.ClearFormatting
> .Replacement.Font.Underline = 3
> .Text = "% MARKET"
> .Replacement.Text = "% MARKET"
> lfound= .execute("% MARKET",.F.,.F.,.F.,.F.,.F.,.T.,0,.F.,"% MARKET",2)
>ENDWITH
>
>but it does nothing.
>
>Thanks for your help
>
>
>Peter
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform