ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   Finding which axis label was selected? (https://www.excelbanter.com/charts-charting-excel/135215-finding-axis-label-selected.html)

Rominall

Finding which axis label was selected?
 
Is there a way to determine which axis label was clicked? Example: Chart by
month. If they click on March, can I detect that?

Jon Peltier

Finding which axis label was selected?
 
Using chart events, Excel can only tell which axis was clicked. However, you
could convert the coordinates of the click to a position on the chart, and
match this to the placement of the labels. It's probably easier to get the
category by having the user click on a point.

Here's an introduction to chart events:

http://www.computorcompanion.com/LPMArticle.asp?ID=221

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


"Rominall" wrote in message
...
Is there a way to determine which axis label was clicked? Example: Chart
by
month. If they click on March, can I detect that?





All times are GMT +1. The time now is 04:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com