F
Flint
Hello,
I need to locate a heading within a document, knowing only its text, not the
number -so I can't do, for example
Selection.GoTo What:=wdGoToHeading, Which:=wdGoToFirst, Count:=16,
Name:=""
- and then select all the text between this heading and the next.
Using "find" is no good, because there are plenty of parts in the document
where the text is found. So far, I have thought of selecting each one of them
and then looking at its style, but that seems to be a bit messy.
How can it be done some other way?
Thanks.
I need to locate a heading within a document, knowing only its text, not the
number -so I can't do, for example
Selection.GoTo What:=wdGoToHeading, Which:=wdGoToFirst, Count:=16,
Name:=""
- and then select all the text between this heading and the next.
Using "find" is no good, because there are plenty of parts in the document
where the text is found. So far, I have thought of selecting each one of them
and then looking at its style, but that seems to be a bit messy.
How can it be done some other way?
Thanks.