+ Reply to Thread
Results 1 to 3 of 3

Add Data Labels to Dynamic Scatter Plot

  1. #1
    Registered User
    Join Date
    06-17-2014
    Location
    Columbus, OH
    MS-Off Ver
    2010
    Posts
    9

    Add Data Labels to Dynamic Scatter Plot

    Hi all,

    Thanks for reading. I am very new to VBA but am hoping with some help I can pull this off.

    My table has 4 columns (Category, Label, X, and Y). I am creating a scatter plot (X and Y) and using a macro to assign data labels (Label) to the points. However, when I filter (on Category) the labels are static and do not change with the data in the table. The labels do not correlate to the data point they are placed on. If I have a list of 10 items and filter it down to 3, the first 3 labels (labels in rows 1-3) will be assigned to those points even if they were items 8-10.

    I am looking for a solution to have the labels stay with the points as the data is filtered. Any tips would be appreciated.

    I hope this makes sense and that someone can help me solve this. The code is below, taken from a tutorial.

    Please Login or Register  to view this content.

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

    Re: Add Data Labels to Dynamic Scatter Plot

    Please Login or Register  to view this content.
    Explanation of what is happening when data labels and filtered data is used.
    http://www.andypope.info/ngs/ng57.htm
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    06-17-2014
    Location
    Columbus, OH
    MS-Off Ver
    2010
    Posts
    9

    Re: Add Data Labels to Dynamic Scatter Plot

    Thank you so much Andy! This works like a charm.

    Great explanation in the post. I actually had read that earlier but couldn't figure out how to apply within VBA.

+ 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. Replies: 2
    Last Post: 04-05-2014, 06:46 PM
  2. How to change XY scatter plot data labels?
    By nuru_device in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-22-2014, 07:03 PM
  3. Update Scatter Plot Labels when data is updated?
    By rlrosenberg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-26-2013, 09:29 PM
  4. [SOLVED] Scatter Plot Data Labels
    By Mike K. in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-22-2008, 10:12 AM
  5. Custom data labels on a scatter plot
    By Bradfro in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-20-2005, 08: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