You can use either the range or the selection object, then use the Extend
method:
Selection.Extend Character:="%"
That will extend the selection right until the first % sign. You need to
somehow protect against a "runaway" condition if there is any possibility
that the % sign may not be there.
However, you can do this with the Replace tool without needing script:
In Find/Replace, set $*% as your Find string.
Specify "Use wildcards" so the * matches "any number of characters" so you
are not searching for $<any characters>%
In the Replace box, specify Format>Font>Italic. Make sure the Replace box
contains no characters, and ... voila!
Hope this helps
On 7/02/10 8:17 AM, in article 59bb2...@webcrossing.JaKIaxP2ac0,
"mik...@officeformac.com" <mik...@officeformac.com> wrote:
This email is my business email -- Please do not email me about forum
matters unless you intend to pay!
--
John McGhie, Microsoft MVP (Word, Mac Word), Consultant Technical Writer,
McGhie Information Engineering Pty Ltd
Sydney, Australia. | Ph: +61 (0)4 1209 1410
+61 4 1209 1410, mailto:jo...@mcghie.name
Then Execute your Find with Replace All set to True :-)
Cheers
On 7/02/10 9:49 PM, in article 59bb2...@webcrossing.JaKIaxP2ac0,
"mik...@officeformac.com" <mik...@officeformac.com> wrote:
This email is my business email -- Please do not email me about forum