Excel: Adding a Series to a Chart with a Macro

Last reviewed: November 29, 1994
Article ID: Q24876
The information in this article applies to:
  • Microsoft Excel for the Macintosh, versions 1.x, 2.2, 3.0, 4.0

SUMMARY

A series can be added to a Microsoft Excel chart through a macro by using the FORMULA command function.

For example, to add a series containing the categories of "a" and "b", the values of 12 and 16, and the plot order number of 1, the following macro command can be used:

   =FORMULA("=SERIES(,{""a"",""b""},{12,16},1)")

For additional information about the SERIES and FORMULA functions, see the references below.

REFERENCES

"Microsoft Excel Function Reference," version 4.0, pages 168-169 (FORMULA), page 387 (SERIES)

"Microsoft Excel Function Reference" version 3.0, pages 89-90 (FORMULA), pages 216-217 (SERIES)

"Microsoft Excel Functions and Macros" version 2.2, pages 224-225 (FORMULA), pages 576-577 (SERIES)


KBCategory: kbusage
KBSubcategory:

Additional words: 1.x 2.2 2.20 3.0 3.00 4.0 4.00


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 29, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.