Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / June 2004

Tip: Looking for answers? Try searching our database.

Inserting pie chart into mail merge document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vicki - 17 May 2004 14:39 GMT
I'm trying to get a pie chart in a mail merge document to
change with each record in the datasource (an excel
file).  I've placed the merge fields for the two figures I
wish represented in the pie chart in a table.  I've then
successfully added the pie chart, but always shows the
data from the first record. Is there anyway to set up the
main document so that the chart changes according to the
data for each record?
Cindy M  -WordMVP- - 19 May 2004 17:54 GMT
Hi Vicki,

This is not something mail merge can do for you, without
quite a bit of help. Either manually or with VBA code. Which
version of Office do you have?

> I'm trying to get a pie chart in a mail merge document to
> change with each record in the datasource (an excel
[quoted text clipped - 4 lines]
> main document so that the chart changes according to the
> data for each record?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :-)
- 20 May 2004 14:07 GMT
We're working in 2002 SP2 for both Word and Excel.

>-----Original Message-----
>Hi Vicki,
[quoted text clipped - 22 lines]
>
>.
Cindy M  -WordMVP- - 20 May 2004 16:44 GMT
> We're working in 2002 SP2 for both Word and Excel.
>  
OK. I'll outline the three (or four) basic approaches that
can be used. One of them requires macro code; the other
three are really only do-able using macros, but could be
done manually:

1. Create a separate pie chart for each record in Excel. Add
a merge field to the data source that contains the
corresponding NAME for each chart sheet. Use this merge
field in a LINK field to link the chart across for the
merge. Merge to a new document, Ctrl+A, then F9 to update
the LINK fields.

2. The approach you tried already, linking a table in Word
to an MS Graph chart. But then you have to manually "view"
each record and print that out. Executing the mail merge
won't work because the bookmark that links the table into
the chart is lost.

3. Similar to (2), but you create the charts AFTER the mail
merge.

4. In Word 2002/2003 there's a VBA-thing that would let you
create the charts on-the-fly, using either a table in the
document, or data from an outside source.

Of these, I think only (2) would be acceptable to do
manually. Whether you'd actually want to do it would depend
on how many records you'd have to cycle through.

If you're not in a hurry, I'm planning to work up (4) for a
book. I just don't know when I'll get to it (over the
weekend, I hope!)

> >-----Original Message-----
> >Hi Vicki,
[quoted text clipped - 17 lines]
> the
> >> data for each record?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep
30 2003)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:-)
Vicki - 21 May 2004 00:53 GMT
Thanks for the info!  We have about 1300 records to merge
so I don't think we'll opt for the manual procedure.  I am
interested in the 4th option, so please pass it on when
complete.
>-----Original Message-----
>> We're working in 2002 SP2 for both Word and Excel.
[quoted text clipped - 65 lines]
>
>.
Cindy M  -WordMVP- - 16 Jun 2004 17:38 GMT
Hi Vicki,

> We have about 1300 records to merge
> so I don't think we'll opt for the manual procedure.  I am
> interested in the 4th option, so please pass it on when
> complete.

Uploaded to my website today.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun
16 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :-)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.