+ Reply to Thread
Results 1 to 3 of 3

Creating a dynamic inset image on a chart

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

    Creating a dynamic inset image on a chart

    I need to find a way of creating an inset image on a scatter chart which changes as a result of one of the data points being selected in Excel 2007.

    The images will be a .jpg in a defined folder. As the number of data points on the chart is large, it is not really practical to store the images in the workbook itself as there is a different image for each data point.

    Ideally, I'm looking for a suitable image control, which I can position in the chart in a blank area, and change the linkage to its source file by VBA driven by the Chart_Select event. Any other mechanism which gave the same 'user experience' would also be OK.

    I've tried copy/paste type approaches but these crash Excel completely with no hint as to what it doesn't like.

    Any ideas?
    Last edited by mrice; 05-03-2009 at 05:33 PM.
    Martin

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Creating a dynamic inset image on a chart

    Two ways to do this.

    xl2007 specific, you can set the marker to use an external file source.

    Please Login or Register  to view this content.
    xl2007 and previous version, using copy+paste
    You need to add a rectangle shape to the worksheet in order to load the image into.

    Please Login or Register  to view this content.
    In both cases I tested on a Line chart with single series containing 8 data points.
    You will need to modify the location/name of the image files.
    Cheers
    Andy
    www.andypope.info

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

    Re: Creating a dynamic inset image on a chart

    Andy

    Excellent solution(s). Many thanks.

    Regards

    Martin

+ 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