+ Reply to Thread
Results 1 to 3 of 3

Chart origin position/coordinates (VBA)

  1. #1
    Registered User
    Join Date
    06-12-2014
    Posts
    2

    Chart origin position/coordinates (VBA)

    Visual Basic 6.3, Excel 2007
    I have a pivot chart, type xlCylinderColStacked
    I would like to know the combination of .ChartArea and .PlotArea attributes (.InsideLeft, .Height, .Top, and so on) that identifies the exact position of the chart origin (i.e. the position of the center of the red circle which I added to the attached chart)
    Immagine.JPG
    As a second best, it will be appreciated a way to put the green horizontal line at a pre-determined position (now it is at 0.30%, but this value changes at each macro iteration, it may be 0.40% next time, 0.20% the time after the next, etc... value should be readen from another Excel file)

  2. #2
    Valued Forum Contributor
    Join Date
    10-15-2007
    Location
    Home
    MS-Off Ver
    Office 2010, W10
    Posts
    373

    Re: Chart origin position/coordinates (VBA)

    Hi
    Welcome to the board

    Not sure I understood exactly what you want, but if you want to draw a red circle at the origin activate the chart and try this code:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-12-2014
    Posts
    2

    Re: Chart origin position/coordinates (VBA)

    Thanks for your quick reply. It worked but it made me understand I was not clear about my problem
    what I really need is the vertical distance between the two red horizontal lines in the upper left corner of the attached image (lines added to make you understand the measure I need). I know the distance depends on the height of the y axes and on the rotation I applied to xlCylinderColStacked, but I can't figure out the formula. Should I re-post with different title?

    Immagine2.JPG

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Get mouse position on single click, use screen coordinates to place an image file
    By schmidt1962 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-01-2013, 02:57 AM
  2. Pointer coordinates on chart
    By Ralem in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-14-2010, 10:04 AM
  3. Pareto Chart, set line chart origin at zero
    By ExcelFed in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-03-2008, 05:08 PM
  4. X,Y coordinates on chart
    By lgarcia3 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-17-2006, 07:46 AM
  5. Analyzing X,Y,Z coordinates of a chart
    By jenlo in forum Excel General
    Replies: 1
    Last Post: 01-31-2005, 10:06 AM

Tags for this Thread

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