+ Reply to Thread
Results 1 to 4 of 4

Replace y-axis values with graphic

  1. #1
    Registered User
    Join Date
    08-26-2010
    Location
    Halden, Norway
    MS-Off Ver
    Excel 2007
    Posts
    27

    Replace y-axis values with graphic

    Hi all,

    I would like to present a Chart that has y-values from 0-10.
    These values should be presented with graphic elements.
    See attached jpg-file.

    The Y-values should be fixed, start at 0 and end at 10 always.

    The D-graphic should be placed between 0-1
    The C1-C2 graphic should be placed between 1 - 4
    The B1 - B3 graphic sholud be placed between 4 - 7
    The A1 - A3 graphic should be placed between 7 - 10

    All has to be done with a Macro in VBA.

    Thanks for any help in advance.

    Regards,
    Attached Images Attached Images
    Last edited by jmadsen; 09-23-2010 at 05:47 AM.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Replace y-axis values with graphic

    If you create your graphic elements as rectangle drawing objects with text you can use code like the following to align them to the axis.

    Please Login or Register  to view this content.
    Martin

  3. #3
    Registered User
    Join Date
    08-26-2010
    Location
    Halden, Norway
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Replace y-axis values with graphic

    Thanks for the reply.

    To use Your code I have to manually draw the rectangles before executing the code?

    I have a VBA Macro that do all the graph-work from scratch, so when I use Your code I
    get an Error when the code tries to align the Rectangles. There are not Rectangles to work with.

    Is there a way to get the Macro to draw the Rectangles as well?

    Best regards,
    Jørn

  4. #4
    Registered User
    Join Date
    08-26-2010
    Location
    Halden, Norway
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: Replace y-axis values with graphic

    Hi,

    I found this code, and it is working.

    Please Login or Register  to view this content.
    Thanks for showing me the direction.

    Regards,

+ 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