+ Reply to Thread
Results 1 to 3 of 3

Trouble making scatter plot loop

  1. #1
    Registered User
    Join Date
    01-05-2011
    Location
    michigan
    MS-Off Ver
    Excel 2003
    Posts
    15

    Trouble making scatter plot loop

    I am trying to make a macro that creates a series of scatter plots, based on criteria in column M. The data to be used for the plot are in columns G and H. Column M is sorted ascending, and for all instances of one value, the scatter plot is created. So while cells in column M = "x", select the top and bottom cell, storing each as a range, and then use them to create a range chartRange. I think my problem is in defining the chartRange variable, not sure though. here is the code so far:

    Please Login or Register  to view this content.
    I know that there are other problems with this code, but all I'm concerned with right now is properly storing and referring to that range.

  2. #2
    Registered User
    Join Date
    01-05-2011
    Location
    michigan
    MS-Off Ver
    Excel 2003
    Posts
    15

    Re: Trouble making scatter plot loop

    I just realized my first problem, I had my offset values backwards. Now I am getting a "Object variable or with block variable not set" error for:

    Please Login or Register  to view this content.

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

    Re: Trouble making scatter plot loop

    It would help if you posted example of the data layout and a chart created on 1 of the sets of data.
    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)

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