Bug Report Range.Find.Execute sometimes does not work.

D

David Thielen

Hi;

I am trying somehow to get these bugs reported to the Word group
(having no luck so far):

I have a document, you can see the Find bug (Range.Find.Execute will
not find text that exists in the range passed to it and will return
text outside the range passed to it.

This occurs within cells in a table and I can provide the document and
the specific searches that fail.

thanks - dave
 
C

Cindy M -WordMVP-

Hi David,
I have a document, you can see the Find bug (Range.Find.Execute will
not find text that exists in the range passed to it and will return
text outside the range passed to it.

This occurs within cells in a table and I can provide the document and
the specific searches that fail.
This might depend on HOW you're assigning the range. If, for example,
you set a range to include two cells (in a row of four cells), run the
code, the first hit will be within the specified range. Correct?

If you then try to do something like extend the range from the END of
the hit's range to the second cell (or the end of the document), all of
a sudden you get unexpected result?

This is because you can't set ranges from within a cell's range to a
point outside the cell. Crossing the "cell border" will automatically
extend the range to include the entire row, or even the entire table.
So, if you want to process a Find within a table you need to go
cell-by-cell.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :)
 
D

David Thielen

Nope, my range is always a single paragraph. And what's really bad is
that it returns something well past the range and misses everything
inside the range.

thanks - dave
 

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