Excel: Selecting a Data Point in a Chart with a Macro

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

SUMMARY

In Excel versions 2.2, 3.0 and 4.0, a series or data point can be selected from a macro by using the SELECT function. The arguments are in the form "SxPy" where "x" is the number of the series and "y" is the number of the data point.

For example, the following macro activates a chart and selects point 3 in series 2:

   =ACTIVATE("Chart1")
   =SELECT("S2P3")

For more information on this feature, see pages 380-381 of the "Microsoft Excel Function Reference," version 4.00. If you are using version 3.0, see pages 211-212 of the "Microsoft Excel Function Reference" version 3.0 manual. If you are using Excel 2.20, see pages 275-276 of the "Microsoft Excel Functions and Macros" version 2.2 manual.


KBCategory: kbusage
KBSubcategory:

Additional words: 2.2 2.20 2.21 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.