Re: Find any Arial and replace it with Times New Roman
From: Chris Joyce (nntp(remove)_at_chrisjoyce.id.au)
Date: 06/19/04
- Next message: Greg Maxey: "Re: Opinion from Doug Robbins and Peter Hewett Requested"
- Previous message: telonq: "VB inserting RTF tags while opening document"
- In reply to: Jean-Guy Marcil: "Re: Find any Arial and replace it with Times New Roman"
- Next in thread: Chris Joyce: "Re: Find any Arial and replace it with Times New Roman"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 19 Jun 2004 23:58:14 +1000
It just dose not work , no error, no resault
I have the code being called by the autoopen() Macro.
I tried doing a manual find/replace via
<CTRL-H> Format/Font , It fails as well ( but only on some of the document
!
The other one that fials is the 'Wingdins' to 'Times New Roman' where the
text is 'N/A'
Thanks for your help
Chris
http://www.chrisjoyce.id.au/Staff_Review.zip
"Jean-Guy Marcil" <no-spam@leaveme.alone> wrote in message
news:elpYIfVVEHA.3464@TK2MSFTNGP10.phx.gbl...
> Bonjour,
>
> Dans son message, < Chris Joyce > écrivait :
> In this message, < Chris Joyce > wrote:
>
> || I've been trying to work out how to replace the font format of one font
> only
> || ,
> ||
> || in short I'm trying to Find any Arial and replace it with Times New
> Roman
> ||
> || With DocRange.Find
> || .ClearFormatting
> || .Replacement.ClearFormatting
> || .Format = True
> || .Font.Name = "Arial"
> || .Replacement.Font.Name = "Times New Roman"
> || .Text = ""
> || .Replacement.Text = ""
> || .Forward = True
> || .Wrap = wdFindContinue
> || .Execute Replace:=wdReplaceAll
> || End With
> ||
> || But it dose not seem to work :-(
>
> How is it not working?
> You are not giving us much to go on!
>
> Just to be sure, I pasted your code in a document that had some Arial
> text,
> and it worked. (Word XP)
>
> --
> Salut!
> _______________________________________
> Jean-Guy Marcil - Word MVP
> jmarcilREMOVE@CAPSsympatico.caTHISTOO
> Word MVP site: http://www.word.mvps.org
>
>
>
- Next message: Greg Maxey: "Re: Opinion from Doug Robbins and Peter Hewett Requested"
- Previous message: telonq: "VB inserting RTF tags while opening document"
- In reply to: Jean-Guy Marcil: "Re: Find any Arial and replace it with Times New Roman"
- Next in thread: Chris Joyce: "Re: Find any Arial and replace it with Times New Roman"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|