Results 1 to 5 of 5

Add Shape (arrow) to an Excel Chart AND auto re-position

Threaded View

  1. #1
    Registered User
    Join Date
    04-28-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2003, 07 & 10, 16
    Posts
    26

    Add Shape (arrow) to an Excel Chart AND auto re-position

    Hi -

    I have a Combo Chart (primary series is a scatter graph; secondary series is a line graph). The Secondary Axis is a straight line (single $ Amount). I've manually added a Shape called "Left Arrow", and have added some text (linked to a cell) that pertains to the Secondary Axis. The shape is on the right side of the graph where the secondary vertical axis would be.

    Question is: Using VBA, how can I auto adjust the position of the arrow shape to align with the Secondary Axis that will change each time I update the graph? I have tried to use the .Top alignment for the arrow shape via VBA, but I can't seem to match this ".Top" with anything on the Secondary Axis.

    As mentioned, the Secondary Axis can & probably will change with each refresh, so, if using VBA I can determine the Secondary Line amount, can I use that to help the arrow shape to find the right position?

    Anybody have an example / code?

    Any help is greatly appreciated!

    thanks,
    GRC
    Last edited by grcaz; 10-25-2017 at 08:48 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 01-26-2016, 05:08 AM
  2. [SOLVED] How to push painted cell using the arrow keys or shape-arrow in Excel - VBA-Offset?
    By Dumy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-04-2015, 05:05 AM
  3. Excel 2007 : Shape Position
    By bwkiefer in forum Excel General
    Replies: 3
    Last Post: 01-26-2014, 10:07 AM
  4. ADD arrow shape button to view next record
    By dingdang in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-20-2013, 11:01 AM
  5. Conditional Shape of an arrow based on cell value
    By ron2k_1 in forum Excel General
    Replies: 1
    Last Post: 06-30-2010, 08:51 PM
  6. position of shape
    By jmoffat in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-12-2006, 04:02 AM
  7. auto position of data labels in a line chart
    By Nick Turner in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-18-2005, 07:05 PM

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