+ Reply to Thread
Results 1 to 4 of 4

XY Scatter label and colouring problem

  1. #1
    Registered User
    Join Date
    10-18-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    2

    XY Scatter label and colouring problem

    Hi, here is my first post! I hope someone can get me back on the right road with this please. Any help gratefully received.

    The code should be helping label up a XY scatter chart, and colour points and text for similar items on the chart.

    The routine gets into trouble where I start to set out to loop through the label process followed by the colouring stuff. (I took the label routine from the MS website).

    The code snags up with a runtime error 1004 Method 'Range' of Object'_Global' failed on the line below

    ReDim mylabelarray((Range(xVals).Cells.Count + 1), 4)

    Here is the code. To get it working you need some data in column H and column L starting at row 40. Cell A1 should contain the row number of the end of the data. This is because the length of the data may well be different each time I want to use the chart and so by changing the ref in A1 I can adjust the chart dimensions....

    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,436

    Re: XY Scatter label and colouring problem

    You can only redim the outer array element, not the inner ones
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    10-18-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: XY Scatter label and colouring problem

    Hi Andy, thanks for the swift reply.

    Can you elaborate on that a little please? How do I split up that code and still achieve the correct parameters for the two elements?

    Many thanks again

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

    Re: XY Scatter label and colouring problem

    first you need to explain what the code should be doing?
    Post example file

+ 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. custom axis label in scatter chart
    By bidur in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-18-2013, 11:03 AM
  2. Scatter Graph - Data Label
    By fthcan in forum Excel General
    Replies: 0
    Last Post: 10-19-2012, 01:43 AM
  3. Scatter graphs - How do you label points?
    By nickbarthram in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-05-2007, 02:06 PM
  4. scatter plot & label for a data point
    By shabnam in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-11-2005, 02:06 PM
  5. Scatter Graph - Data Label Problems
    By TBD in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 01-16-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