+ Reply to Thread
Results 1 to 4 of 4

Data Labeling Macro Problems

  1. #1
    Registered User
    Join Date
    07-20-2011
    Location
    Gainesville, Florida
    MS-Off Ver
    Excel 2007
    Posts
    3

    Data Labeling Macro Problems

    I have a macro that I´ve been using to label series data points on a chart with a desired name rather than with the coordinate points. The macro works very well except for one thing, it is only meant to make one series. I would like to add a loop to it to make it be able to plot multiple series and label their data points. I´m not sure if this would work but ideally I would like to have the code distinguish a new series whenever there is a blank row in the data.
    So for example:

    AG32 4 5
    BC78 3 6
    HA23 2 0

    AN32 4 6
    JK12 2 6

    I would like the code to creat two series one with AG32-HA23 with labeled data points and one with AN32-JK12 with labeled data points, and on the same graph.


    The code I have looks like this:


    Please Login or Register  to view this content.

    I think I could add series with an outer loop to the format routine that looks something like


    Please Login or Register  to view this content.

    but I really don´t know the syntax of VBA at all and I´m honestly not a programmer. Could anyone show me how to do this and repost the edited code?

    Thanks
    Last edited by ryanbrenton; 07-20-2011 at 04:09 AM.

  2. #2
    Registered User
    Join Date
    06-29-2011
    Location
    California
    MS-Off Ver
    Excel 2003/2007
    Posts
    58

    Re: Data Labeling Macro Problems

    I don't know the rules, but you're gonna get cracked down on for not wraping your code properly - just an fyi if you'd like to edit your post.

  3. #3
    Registered User
    Join Date
    07-20-2011
    Location
    Gainesville, Florida
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Data Labeling Macro Problems

    OK thanks what do I need to do wrap it correctly though?

  4. #4
    Registered User
    Join Date
    06-29-2011
    Location
    California
    MS-Off Ver
    Excel 2003/2007
    Posts
    58

    Re: Data Labeling Macro Problems

    edit your post, click go advanced, and theres a button that says wrap code, or something like that (its a #). Select your code, and click that button

+ 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