+ Reply to Thread
Results 1 to 4 of 4

Using VBA to move data labels positions in a scatter chart

  1. #1
    Registered User
    Join Date
    06-20-2014
    Location
    São Paulo
    MS-Off Ver
    2013
    Posts
    2

    Using VBA to move data labels positions in a scatter chart

    Guys, does anyone know how to use an offset-like vba function to move chart labels around? I am aware of xlLabelPositionAbove/Below but it does not meet my needs. I need some way to move a fixed number of pixels to the left or right from the initial position.

    Thanks!

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Using VBA to move data labels positions in a scatter chart

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-20-2014
    Location
    São Paulo
    MS-Off Ver
    2013
    Posts
    2

    Re: Using VBA to move data labels positions in a scatter chart

    Thanks, RCM. That helped, but not just quite what I was looking for. I want to find a way to move the data labels around without the need of an external reference (Selection.Left and Selection.Top in this case). I want the labels to be placed at a precise location using as reference its own previous position. Do you know if there is a way to do such a thing?

    Thanks in advance!

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

    Re: Using VBA to move data labels positions in a scatter chart

    If you are using code then you can read the left/top label position and simply increment it.

    If you are doing it manually then the xylabeler addin has a nudge option.
    http://www.appspro.com/Utilities/ChartLabeler.htm
    Cheers
    Andy
    www.andypope.info

+ 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. Adding Labels to Data Points in Scatter Plot Chart
    By Stopea in forum Excel General
    Replies: 10
    Last Post: 05-21-2014, 08:25 PM
  2. Macro to add labels to data points in an xy scatter chart
    By Scott Wagner in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 12-16-2005, 09:50 PM
  3. Data point labels in XY scatter chart
    By TonyGB007 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-09-2005, 05:20 AM
  4. Data labels on scatter chart
    By rmellison in forum Excel General
    Replies: 3
    Last Post: 10-18-2005, 11:05 AM
  5. [SOLVED] Excel 2000 Scatter Chart cannot use data labels
    By Tom in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-06-2005, 02:06 PM

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