Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 287
Default VBA to identify the name of a point

When I highlight a point on a graph with my mouse, Excel identifies that
point with a pop up dialog box as Series "name" Point "as x axis name"
Value: ###

Basically, when I get to the point in a series with the "name" of a
particlar position on my x axis, I want to do something. But I have not
figured out how in VBA to know that I have arrived on point "Dec-08" of a
particluar series while looping through all the points in that series. I
need something like 'if pt.name = "Dec-08" then...', but I can't find any
such
property.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default VBA to identify the name of a point

Hi Aaron,

You do it by identifying the value in the source data range. Loop through
the source using for i = 1 to number of cells in the source data for the
series.

..SeriesCollection(1).Points(i) is then equivalent to the cell(i) and you can
test the value of cell(i)

Hope this points you in the right direction but feel free to get back to me.


--
Regards,

OssieMac


"Aaron" wrote:

When I highlight a point on a graph with my mouse, Excel identifies that
point with a pop up dialog box as Series "name" Point "as x axis name"
Value: ###

Basically, when I get to the point in a series with the "name" of a
particlar position on my x axis, I want to do something. But I have not
figured out how in VBA to know that I have arrived on point "Dec-08" of a
particluar series while looping through all the points in that series. I
need something like 'if pt.name = "Dec-08" then...', but I can't find any
such
property.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 120
Default VBA to identify the name of a point

Aaron,

Not a simple task if you want to have the method smooth. If this is a case
you need use chart events. For introduction/deterioration look in Jon
Peltier's

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

--
Regards,
Petr Bezucha


"OssieMac" wrote:

Hi Aaron,

You do it by identifying the value in the source data range. Loop through
the source using for i = 1 to number of cells in the source data for the
series.

.SeriesCollection(1).Points(i) is then equivalent to the cell(i) and you can
test the value of cell(i)

Hope this points you in the right direction but feel free to get back to me.


--
Regards,

OssieMac


"Aaron" wrote:

When I highlight a point on a graph with my mouse, Excel identifies that
point with a pop up dialog box as Series "name" Point "as x axis name"
Value: ###

Basically, when I get to the point in a series with the "name" of a
particlar position on my x axis, I want to do something. But I have not
figured out how in VBA to know that I have arrived on point "Dec-08" of a
particluar series while looping through all the points in that series. I
need something like 'if pt.name = "Dec-08" then...', but I can't find any
such
property.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 287
Default VBA to identify the name of a point

More than one way to skin a cat I guess, that's dirty, but it will work,
thanks!

"OssieMac" wrote:

Hi Aaron,

You do it by identifying the value in the source data range. Loop through
the source using for i = 1 to number of cells in the source data for the
series.

.SeriesCollection(1).Points(i) is then equivalent to the cell(i) and you can
test the value of cell(i)

Hope this points you in the right direction but feel free to get back to me.


--
Regards,

OssieMac


"Aaron" wrote:

When I highlight a point on a graph with my mouse, Excel identifies that
point with a pop up dialog box as Series "name" Point "as x axis name"
Value: ###

Basically, when I get to the point in a series with the "name" of a
particlar position on my x axis, I want to do something. But I have not
figured out how in VBA to know that I have arrived on point "Dec-08" of a
particluar series while looping through all the points in that series. I
need something like 'if pt.name = "Dec-08" then...', but I can't find any
such
property.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA to identify the name of a point Aaron Excel Programming 3 December 4th 08 09:46 PM
Data point on line is not over the point/tick in X axis... TomCat Charts and Charting in Excel 2 September 6th 07 01:36 PM
X Y Scatter With Point name on each point ? Raj Charts and Charting in Excel 3 July 27th 07 08:47 PM
formula to identify exact point where trendline intersects data Jane Excel Worksheet Functions 5 November 14th 06 11:09 PM
I need more general XY point to point plotting than XY scatter in spazminator Charts and Charting in Excel 12 December 19th 05 05:00 PM


All times are GMT +1. The time now is 10:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"