Automatically Update Linked Chart in MS Word

JSearcy

New Member
Joined
Apr 29, 2002
Messages
14
I have gotten great responses here in the past, so I hope someone out there happens to know the answer to this one...
My boss called me yesterday wanting to know if you could publish an Excel chart to the web (of course) - however, she wants it to automatically update whenever the source chart changes... Would be simple, except that in order to edit/update the web page, you must open it in edit mode(not desirable). I know you can command other applications from within Excel and was looking at making Excel launch the MS Word document containing the linked chart and update it in the BeforeClose()event of the workbook (Thus updating the webpage)... But I cannot find the original coding to command other applications...
ANY HELP WOULD BE MOST APPRECIATED
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
The following code selects the graph named Chart 8 and exports and names it as a GIF file to the selected directory:

ActiveSheet.ChartObjects("Chart 8").Activate
Application.ActiveChart.Export Filename:="M:tscamtaistaisppmelAvailability1.gif", FilterName:="GIF"

An easy way to find the chart name is to right click it and select assign macro. The chart name will be displayed in the top line.

As a side note, the method for exporting a graph, described in the help file for both Excel 97 & 2000, doesn't work.
This message was edited by Steve Hartman on 2002-07-08 06:05
 
Upvote 0
Thanks to everyone for the responses to my question. I figured out a solution myself... but I will keep your responses in my ever-growing VBA library, as I am sure that it will prove useful sooner or later.

Thanks!
This message was edited by JSearcy on 2002-07-09 10:48
 
Upvote 0
Hello there,

The only thing you need to do is to make a chart in excel, copy the chart, when pasting in word say paste with source formatting and link data. And then go to File > Links and click the file link, below you'll see option to update manually or automatically. Check the box next to "automatic", and there you go. Problem solved !
 
Upvote 0

Forum statistics

Threads
1,225,197
Messages
6,183,499
Members
453,165
Latest member
kuldeep08126

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