GetChartElement certainly not in my Excel 2010 help file! And I was Googling GetElement rather than GetChartElement which is not the obvious match, however its spec includes xlDataTable so it sounds right.
So I googled correctly and found a few entries, though all different from my needs. (You'll doubtless have done that.)
I found this example of use where a mouse action provides coordinates, so I now opine the method is telling me what it finds at a point in the chart. Here the moving mouse gives coordinates to use. This example warns the user if she moves the mouse over the chart legend.
Visual Basic for Applications
Well that’s nice. I did not know one could trap mouse overs in VBA (I knew in VB).
But it does not help me. How will I get back the msoElementDataTable and similar replies, especially as arg1 and arg2 return no data? And I would not know what coordinates to use for something whose presence I am trying to detect!
Thanks for the info, interesting and informative, but not a solution yet I fear.
Bookmarks