Article ID: 137016 - Last Review: October 11, 2006 - Revision: 2.3 Macro to Extract Data from a ChartThis article was previously published under Q137016 For a Microsoft Excel 2002 version of this article, see 300643
(http://support.microsoft.com/kb/300643/EN-US/
)
.
For a Microsoft Excel 2000 version of this article, see 213814 (http://support.microsoft.com/kb/213814/EN-US/ ) . On This PageSUMMARY
In Microsoft Excel, you can retrieve data from a chart even when the data
is in an external worksheet or workbook. This is useful in situations where
the chart was created from, or linked to, another file that is unavailable
or has been damaged in some way. When the source data to a chart is lost,
the data can still be retrieved from the chart itself, by using a Microsoft
Visual Basic for Applications macro.
MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
The following sample macros place the chart's source data in a
worksheet called "ChartData" in the active workbook, beginning in the first
column and first row.
Excel 97 for Windows and Excel 98 Macintosh Edition
Microsoft Excel version 5.0 or 7.0
139401
(http://support.microsoft.com/kb/139401/EN-US/
)
XL: "Subscript Out of Range" Error When XValues Referenced
APPLIES TO
| Article Translations
|

Back to the top
