Excel: Getting Information from Chart Formula Bar with a Macro

Last reviewed: November 2, 1994
Article ID: Q59970

SUMMARY

To return information such as the series formula, title, or text labels from a chart to a macro sheet in Microsoft Excel, use the GET.FORMULA function. The GET.FORMULA function for a chart returns the following results for each argument:

   The Function                    Returns
   ------------                    -------

   GET.FORMULA("SnP1")             Series formula as text for series n
   GET.FORMULA("Title")            Title of chart
   GET.FORMULA("Text n")           Unattached text n
   GET.FORMULA("Text SnPm")        Attached text for series n point m

For more information on GET.FORMULA, see page 110 in the "Microsoft Excel Function Reference" version 3.0 manual. If you are using Excel 2.20, see page 238 in the "Microsoft Excel Functions and Macros" version 2.2 manual.

For more information on chart items, see Form 3 of the SELECT command on pages 211-212 in the "Microsoft Excel Function Reference" version 3.0 manual. If you are using Excel 2.20, see Form 2 of the SELECT command on pages 275-276 in the "Microsoft Excel Functions and Macros" version 2.2 manual.


KBCategory: kbother
KBSubcategory:

Additional reference words: noupd


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: November 2, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.