Locating specific range points

D

dennis

Here's my requirement:

I have to find specific text located in various places in a
document. Once I identify the location of a spceific
character (ASCII 167 in this case), I need to locate the
VERY NEXT ")" character. My selected range must start at
the 167-char, and end at the ")" char. I then need to
replace the text in that range with a hotlink (easy enough
to do).

What I need to know is:

1) How to identify the absolute character position of the
first & last character, and set the RANGE to those values

2) Is there a different way to do that? If so, how?

I'm using vB6.

thanks!!
 
D

Doug Robbins

Hi Dennis,

Use a wildcard string in your code

See the article "Finding and replacing characters using wildcards" at:

http://word.mvps.org/FAQs/General/UsingWildcards.htm


--
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top