Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word: find and replcae
Message
From
24/10/2000 10:42:06
 
 
To
24/10/2000 10:36:22
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00433444
Message ID:
00433492
Views:
15
Hi Peter,

Can't make WhilFest (sigh). I think my next conference will be Dev Connections in Spring in Orlando. As to your underline problem, I go back to my point that the find and replace text is the same and maybe the replace is not kicking in because of that.

I'm going to play with this problem a bit and if I find a solution I'll reply back.


>Thanks for chiming in. I need to UNDERLINE the word % MARKET
>
>Peter
>
>Am I going to see you in Milwaukee??
>
>
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform