How to use mail merge to create a list sorted by category in Word 2007

I have an Excel spreadsheet with 135 records.  Headings are:
Name, PersonalTimesBalance, VacationBalance, ReportsToName, e-mail, PreferredName

The last field, PreferredName is the key field the merge will be based on, AND grouped on.

Attached is the merge code, but when I click the "Preview Results" button, it's not grouping on the PreferredName; the record row under the table (in second image) should list 5 additional records for the PreferredName(which =Larry); the mailmerge record selector indicates 135 records as well.

What am I doing wrong with my code that it's only pulling 1 record on the PreferredName?
 Merge code Merge result based on code
eossmaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

GrahamSkanRetiredCommented:
Just to check, the records are sorted so that all the Larrys, etc are together?

It would help to post the main document and a sample spreadsheet. It's rather difficult working from a picture.
0
eossmaAuthor Commented:
Correct.  All of Larry's people should be posted below, but it's only pulling the first record.
Book2.xlsx
0
eossmaAuthor Commented:
Someone please help . . . I really need to get this to happen and I really haven't heard anything!
0
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

GrahamSkanRetiredCommented:
Sorry. I ran out of time and enthusiasm trying to recreate your main document from a rather fuzzy picture.

 Is it possible that you could post that (censored if necessary)?
0
eossmaAuthor Commented:
I'm not sure what you mean . . . I attached graphics that were quite clear.
0
GrahamSkanRetiredCommented:
I have spent a few hours on trying to get this to work. I've simplified the document, but it should show the idea.




MergeDoc.JPG
Page1.JPG
Page-2.JPG
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Word

From novice to tech pro — start learning today.