Dynamic Table in Mail Merge with different page for key attribute

raushan316

New Member
Joined
Sep 26, 2019
Messages
1
I have to prepare letter for students of different colleges. For each college, there should be one letter with name of all the students & their details in tabular format.
The students data is in excel is as below:
<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
College NameStudent NameFathers NameAddress
ABCXYZPQR1, XYZ Street
PQRASJKDAJD2, XYZ Street
ABCSDADAD1, XYZ Street
ABCADADADD1, XYZ Street
PQRRAREWQD1, XYZ Street
PQRAWRWQRWRQR1, XYZ Street

<colgroup><col style="width: 100px"><col width="100"><col width="100"><col width="100"></colgroup><tbody>
</tbody>

What I want is, separate letter for different colleges i.e. in this case, 2 letters should be printed : one letter having details of all students in ABC College, and another letter having details of PQR College.
The number of students in each college is not fixed, so the table should be dynamic in nature.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,214,987
Messages
6,122,614
Members
449,090
Latest member
vivek chauhan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top