E
Eric
All of our documents have names like 'A123 Procedure to do
lots of things.doc'. When we click in the name and run the
macro various processing takes place.
The macro does a find 'backward' and looks for 'A123' and
book marks it. It then finds 'forward' for '.doc'. A range
is then defined and the name is selected.
What we want to check is that we don't leave the paragraph
with the file name in it. For instance if the 'A123' was
missing off the file name, the search backwards would keep
going until it hits 'A123' in a filename in a previous
paragraph.
Some ideas we had for checking was:
- search for the paragraph marks (before and after the
paragraph with the file name)then create a range between
for searching forwards/backwards.
- do the search forwards/backwards, get the filename and
do a check using InStr to see if a paragraph mark was
captured.
Are there other simpler ways of doing this?
lots of things.doc'. When we click in the name and run the
macro various processing takes place.
The macro does a find 'backward' and looks for 'A123' and
book marks it. It then finds 'forward' for '.doc'. A range
is then defined and the name is selected.
What we want to check is that we don't leave the paragraph
with the file name in it. For instance if the 'A123' was
missing off the file name, the search backwards would keep
going until it hits 'A123' in a filename in a previous
paragraph.
Some ideas we had for checking was:
- search for the paragraph marks (before and after the
paragraph with the file name)then create a range between
for searching forwards/backwards.
- do the search forwards/backwards, get the filename and
do a check using InStr to see if a paragraph mark was
captured.
Are there other simpler ways of doing this?