+ Reply to Thread
Results 1 to 4 of 4

Macro to move series reference down one row for all charts.

  1. #1
    Registered User
    Join Date
    02-14-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    2

    Macro to move series reference down one row for all charts.

    Hi guys

    I have a number of line charts, some with one series some with multiple. There are around 70 of these charts which plot a variable over the past year from table on another worksheet. The table has months down the columns with a value for each location of the variable. See attached. Just a table.

    Each month we add another row for the current month to these tables and we need to update the graph series to include this month. Basically moving the series references down one row in the spreadsheet. Ie from Jan to jan to feb to feb. this is done manually. This is so we can have a trend of the past 12 months of the variable at each location. Across the 70 or so graphs there are around 250 series to update. As you can imagine this is a bit of an task to update each series manually and move the reference down one row in the table.

    For example series values =Data!$DN$79:$DN$91 would become =Data!$DN$80:$DN$92

    Is there a macro which I can use to move the reference down one row and run through all charts and series on the charts?

    Thanks for the help.


    Crossposted at: https://www.mrexcel.com/board/thread...kbook.1160816/
    Attached Images Attached Images
    Last edited by Glenn Kennedy; 02-05-2021 at 09:46 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Macro to move series reference down one row for all charts.

    Welcome (back) to the forum.

    Thanks for your question. However, we have just found out that you have posted the same question elsewhere.... and haven't told us. Feel free to cross-post on other sites...

    But. Every forum has its rules. Please see Forum Rule #3 about cross-posting. So.

    Do not keep it a secret. We all are willing to give you our time, freely. However, some of us get very annoyed if we waste our time developing a solution for you, when you already have a nice solution elsewhere. All we ask is that you show us some respect and tell us:

    1) if you have cross-posted, and

    2) the URL of the cross posts.

    That way, those of us who don't want to waste their time can quickly check to see if you're already happy with another solution.

    Since you are a very infrequent user of th esite, on this occasion I have done it for you. Next time, ensure that you tell us...
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    02-14-2014
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Macro to move series reference down one row for all charts.

    Oh very sorry about that Glenn, novice mistake, my apologies.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Macro to move series reference down one row for all charts.

    No problem... I am hopeless with VBA, so others will step in, for sure.

+ 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. [SOLVED] Why does this macro color the series on the chart but not the legend, for non-pie charts?
    By tahi.laci in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-08-2015, 07:20 AM
  2. Replies: 1
    Last Post: 10-30-2015, 01:39 PM
  3. [SOLVED] Apply macro to all but two series in charts
    By benjthom in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-02-2013, 11:22 PM
  4. Dynamic charts lose reference in chart series =[0]!
    By Mikerton in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-31-2013, 07:31 AM
  5. Macro needed for multiple series of data to plot unique charts
    By ehelliar in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 04-23-2011, 11:50 AM
  6. How do i move data series into other columns on column charts
    By JamesO in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-03-2006, 12:50 PM
  7. Replies: 1
    Last Post: 05-21-2006, 11:15 AM

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