Mail Merging With Charts - 2022
Mail Merging With Charts - 2022
While not essential, it is best if the data that will be used for the chart for each record in
adjacent columns.
Select those columns and then assign the name XLChartData to them as shown in the
following screen shot
The Chart sheet must be setup as shown in the following screen shot and the cell A2
must be assigned the name XLDataRow and to start with, insert the number 1 into that
cell.
NOTE: It is essential that when the XLChart Data and XLDataRow names arebeing
assigned that the Scope not be changed from Workbook.
If the Scope of the names are not left as Workbook, an Error 1004 application defined or
object-defined will occur when the utility is run.
The following formulae must be inserted into the cells B2, C2, D2, etc
B2 =INDEX(XLChartData,XLDataRow+1,1)
C2 =INDEX(XLChartData,XLDataRow+1,2)
D2 =INDEX(XLChartData,XLDataRow+1,3)
The chart that is to be used in the mail merge must be created from the data in the range
B1:F2 (plus additional columns as required).
At this point, the chart that is constructed, will be based on the data for the first record in
the data source.
You can test if this is set up correctly by changing the number that is inserted into cell A2,
which will cause the data that is displayed in cells B2, C2, E2, etc changing to that from
the record corresponding to the number that is inserted into cell B3 and the chart will
change so that it now reflects that data.
When the bookmark is inserted correctly, with the display of bookmarks turned on, it will
look like:
If it looks like
The cell was not selected in the correct manner and the result will be that when the merge
is executed, the first document will contain the correct chart, but the second will contain
two charts and the third, three charts and so on.
After setting up the Mail Merge Main Document in this way, it must then be saved.
3 Executing the Merge
If the MergeTools - 2022.dotm addin has been saved in the Word Startup Folder, the
following Merge Tools tab will appear on the ribbon
After setting up the Data Source and the Mail Merge Main Document as described in 1
and 2 above, when the Chart Merge button is used, the following dialog will appear:
Depending on which destination for the merge is selected, additional controls will appear.
When data has been inserted or selections have been made in all of the necessary controls,
the Continue button will become enabled and upon clicking on it, the merge will be executed.