E
Ed from AZ
I know that when I set a range and use Range.Find, the range is reset
to just the found text. I am working with documents that can be huge,
and want to save computer "head room". I thought that rather than
setting a range to the entire doc.Contents and using a Find wirth that
range, maybe I could just use doc.Contents.Find. But I can't seem to
capture the resulting range of the found text, because the Contents
range isn't going to reset.
I tried using
Set rngDoc = doc1.Content.Find.Execute(FindText:="MyText")
But it was a Type Mismatch error becuse the Execute returns a Boolean,
not a Range.
Is there a way to use a Find from the Contents object and capture the
range of the found text?
Ed
to just the found text. I am working with documents that can be huge,
and want to save computer "head room". I thought that rather than
setting a range to the entire doc.Contents and using a Find wirth that
range, maybe I could just use doc.Contents.Find. But I can't seem to
capture the resulting range of the found text, because the Contents
range isn't going to reset.
I tried using
Set rngDoc = doc1.Content.Find.Execute(FindText:="MyText")
But it was a Type Mismatch error becuse the Execute returns a Boolean,
not a Range.
Is there a way to use a Find from the Contents object and capture the
range of the found text?
Ed