I may not have posed my question very well in the subject line, so
here's what I'm trying to do.
Let's say I have an area of text in a document (Word 2003) that I want
to find, but it may not be the same every time. Here's and example of
a couple possible areas of text.
Area 1:
aaaaa
bbbbb
ccccc
zzzzz
Area 2:
aaaaa
mmmmm
nnnnn
zzzzz
As you can see in both areas, "aaaaa" will always start it and "zzzzz"
will always end it. What I would like to do is set up my macro to
find the entire section from a to z. Once selected, my macro will
type in some new text. There is no special formatting I have to worry
about and there are no tables or pictures in the area I'm searching
for - just text. Also, this area will only appear once per document.
It is very possible, however, that there may be section breaks
somewhere in the middle. I'm not sure if this would present a
problem.
I'm not new to macros, so the only part I need help with is how to
write it to search these sections from start to end, regardless of
what may be in the middle. I have everything else covered.
Thank you in advance,
Mike
Ed - 30 Jan 2007 13:48 GMT
Mike - Would it work if you set your Find to "aaaaa" and then use
MoveEndUntil "zzzzz"? That's a method I use when splitting a huge database
dump into separate documents.
HTH
Ed
>I may not have posed my question very well in the subject line, so
> here's what I'm trying to do.
[quoted text clipped - 31 lines]
> Thank you in advance,
> Mike
Greg Maxey - 30 Jan 2007 14:01 GMT
Mike,
Set Wildcards to True and use:
aaaaa*zzzzz
On Jan 30, 8:33 am, "njm...@gmail.com" <njm...@gmail.com> wrote:
> I may not have posed my question very well in the subject line, so
> here's what I'm trying to do.
[quoted text clipped - 31 lines]
> Thank you in advance,
> Mike
njmike@gmail.com - 30 Jan 2007 15:21 GMT
Well, wasn't that an easy one to resolve?
That was exactly what I was looking for.
Thanks, guys.
- Mike
> Mike,
>
[quoted text clipped - 39 lines]
> > Thank you in advance,
> > Mike