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

ID: Q49277


The information in this article applies to:


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.

Additional query words:


Keywords          : 
Version           : 
Platform          : 
Issue type        : 

Last Reviewed: March 15, 1999