
Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
Thanks so much, Doug, for your help, but when I cut and paste your lines to
create a new macro, I get the message "Compile error: Expected: New or type
name."
Am I doing something wrong?
Scot (scot@ober.net)
> You may be able to use something like:
>
[quoted text clipped - 17 lines]
> >
> > TIA.
Stefan Blom - 25 Aug 2005 10:29 GMT
Backspace before "Document" in the declaration statement (which starts
with "Dim") so that it doesn't wrap to a second line and then press
SpaceBar to reinsert the space.

Signature
Stefan Blom
Microsoft Word MVP
> Thanks so much, Doug, for your help, but when I cut and paste your lines to
> create a new macro, I get the message "Compile error: Expected: New or type
[quoted text clipped - 24 lines]
> > >
> > > TIA.
Doug Robbins - 25 Aug 2005 19:21 GMT
Probably caused by linebreaks inserted by the mail program. The following
should be all on one line:
Dim i As Long, j As Long, arange As Range, Counter As Long, result As
Document

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
> Thanks so much, Doug, for your help, but when I cut and paste your lines
> to
[quoted text clipped - 26 lines]
>> >
>> > TIA.