+ Reply to Thread
Results 1 to 3 of 3

Loop macro for multiple separate graphs from rows of a large data set

  1. #1
    Registered User
    Join Date
    07-30-2012
    Location
    Stellenbosch, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    1

    Loop macro for multiple separate graphs from rows of a large data set

    (Please - Bear in mind i have very little VBA knowledge) (Use Excel 2007)

    I am working with large amounts of data from a doppler water current radar,

    My data is:
    1st row: C24-AB24 (which needs to be on Y-axis) (Heights of readings from sea floor)
    2nd row & all other rows: C25-AB252 down to C4938-AB4938 - Each row as source data for X-axis in each graph (X-axis) in seperate graphs (readings of shore velocity at each height)

    I am trying to create a macro that repeats the creation of graphs until the last row of data with some sort of loop command (for loop etc) - with each time selecting the next row (each row as X-source data for each graph).

    I.E. each iteration (i), the same Y-source row (first) but the X-source from the second row and each of the next rows each iteration - producing a graph every i,

    Please help me out to incorporate a loop command.

    This is a script i recorded for the graph I'm trying to automate

    Please Login or Register  to view this content.
    Any help will be much appreciated thanks
    Glenn Toms
    Stellenbosch, South Africa
    Last edited by Cutter; 07-30-2012 at 09:19 AM. Reason: Added code tags

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Loop macro for multiple separate graphs from rows of a large data set

    @ GlennToms

    Welcome to the forum.

    Please notice that code tags have been added to your post(s). The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at top of the page and read Rule #3.
    Thanks.

  3. #3
    Forum Contributor wallyeye's Avatar
    Join Date
    05-06-2011
    Location
    Arizona
    MS-Off Ver
    Office 2010, 2007
    Posts
    308

    Re: Loop macro for multiple separate graphs from rows of a large data set

    I'm not quite sure what mechanism you want to use for moving around the worksheet, but this will update the chart based on the selected cell:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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