See
Send Mailmerge Output to Individual Files in the
Mailmerge Tips and Tricks 'Sticky' thread at the top of this forum:
https://www.msofficeforums.com/mail-...ps-tricks.html
The code there outputs every record as a separate file. It could be adapted, though, to group records if that's what you really want.
PS: When posting code, please use the code tags, indicated by the # button on the posting menu. Without them, your code loses much of whatever structure it had.