Using Microsoft Graph Chart

J

Jill E

Hi,

I have a client who has used Microsoft Graph Chart in Word 2002 and wants to
write some code to interface with the graph that resides in a Word document.
I want to write the code to activate and then revise a Microsoft Graph Chart
object from Word.

I have written the code to open and revise an Excel chart from Word by
declaring the chart as an object and then using GetObject to open the file,
but I can't find the equivalent code to activate an existing Microsoft Graph
Chart within a Word document.

Can someone please point me in the right direction?

Thanks,

JillE
 
C

Cindy M -WordMVP-

Hi Jill,
I have a client who has used Microsoft Graph Chart in Word 2002 and wants to
write some code to interface with the graph that resides in a Word document.
I want to write the code to activate and then revise a Microsoft Graph Chart
object from Word.
On my website, in the mail merge section, you'll find a sample file on how to
include a MS Graph in a mail merge result. This isn't exactly what you want to
do, but it should give you a start by showing you how to activate an embedded
MS Graph object and address its object model.

Note that the MS Graph object model is very similar to that of an Excel chart,
except for the datasheet. Also, VBA can't manipulate any drawing objects
(textboxes). And MS Graph doesn't support a color palette.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 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 :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top