Zoska,
One possibility might be to make a three-page word document, with the merge fields from each
group in its respective page. Then do the merge to a document (rather than to the printer),
and throw away the pages that aren't needed. If you don't have a lot of output, this manual
method might be workable.
If you want to send me the workbook, I might be able to write a macro you can use. My
email address can be found in my website below.
Why don't you post this in a Word newsgroup? Someone there might know something that will
help.

Signature
Regards from Virginia Beach,
Earl Kiosterud
www.smokeylake.com
-----------------------------------------------------------------------
> Virginia,
>
[quoted text clipped - 45 lines]
>>> Regards,
>>> Zoska
Zoska - 12 May 2008 19:19 GMT
Virginia,
Thanks again.
I thought about the tree-page word document but I have too many outputs to use the method.
At the moment I started to merge to a document for each subject separately and then I sort
the pages manually. It is a nuisance but I don't have any other way out now. The task is rather
urgent.
Thank you very much for your kind offer to write a macro for me. The workbook is big
and the names of columns are complicated (with Polish fonts). When I manage to do
the most urgent tasks first, I'll prepare an example that will show the case and send it
to you. I think that I'll be able to change the macro from you exactly to my purposes.
I suspect that I'll have similar tasks to do in future.
I sent my request to the newsgroup microsoft.public.word.docmanagement but I didn't
get any reply. From the group for newusers I get an answer with links to articles but
with a remark that the problem probably can't be solved using just the MailMerge
(similar to yours). I am going to study the articles but I don't have time to do it now.
Regards,
Zoska
> Zoska,
>
[quoted text clipped - 54 lines]
>>>> Regards,
>>>> Zoska