+ Reply to Thread
Results 1 to 3 of 3

Return value of a point in a bar chart

  1. #1
    Registered User
    Join Date
    06-21-2005
    Posts
    5

    Return value of a point in a bar chart

    anyone know how to set the value of a variable to the value of a point in a chart. this dosen't work but I'm looking for something like this:
    x = ActiveChart.SeriesCollection(1).Points(6).Value

  2. #2
    Jon Peltier
    Guest

    Re: Return value of a point in a bar chart

    Sub One()
    MsgBox WorksheetFunction.Index(ActiveChart.SeriesCollection(1).Values, 6)
    End Sub

    Sub Two()
    Dim v As Variant
    v = ActiveChart.SeriesCollection(1).Values
    MsgBox v(6)
    End Sub

    - Jon
    -------
    Jon Peltier, Microsoft Excel MVP
    Peltier Technical Services - Tutorials and Custom Solutions -
    http://PeltierTech.com/
    2006 Excel User Conference, 19-21 April, Atlantic City, NJ
    http://peltiertech.com/Excel/ExcelUserConf06.html
    _______


    "Eric_B" <[email protected]> wrote in
    message news:[email protected]...
    >
    > anyone know how to set the value of a variable to the value of a point
    > in a chart. this dosen't work but I'm looking for something like this:
    > x = ActiveChart.SeriesCollection(1).Points(6).Value
    >
    >
    > --
    > Eric_B
    > ------------------------------------------------------------------------
    > Eric_B's Profile:
    > http://www.excelforum.com/member.php...o&userid=24486
    > View this thread: http://www.excelforum.com/showthread...hreadid=529676
    >




  3. #3
    Registered User
    Join Date
    06-21-2005
    Posts
    5
    Thank you Mr Peltier, this is exaclty what i was looking for

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1