
How to create a graph(chart) on a Word Document
Hi Elisha,
Quote:
> I am trying to create a graph(chart) on a Word document.This graph
> should be able to get its data from a table on this word document or from a
> Access database(from which i got the table on the word document,using
> "Insertdatabase" procedure,through VB). If anybody knows how to do
> this,please let me now.
I'm afraid there is no easy way to do this.
You can create a MSGraph that is dynamically linked to a table in Word by
copying the table's contents, starting MSGraph, and using the Eidt/PasteLink
command from MSGraph's menu.
This won't work with a table dynamically linked to an outside appication,
however, because when the field that generates the table is updated the
bookmark used by the Graph to identify the data is destroyed.
A possible workaround would be VBA code that: 1) determines the bookmark
location and name; 2) updates the table data; 3) restores the bookmark
exactly.
Cindy Meister
INTER-Solutions, Switzerland
http://ourworld.compuserve.com/homepages/cindymeister
http://go.compuserve.com/MSWord
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)