+ Reply to Thread
Results 1 to 4 of 4

How to increment a a range of cells (by one cell) which is the output to my pie chart?

  1. #1
    Registered User
    Join Date
    11-21-2012
    Location
    Sierra Vista, AZ
    MS-Off Ver
    Excel 2007
    Posts
    13

    How to increment a a range of cells (by one cell) which is the output to my pie chart?

    I need a macro to increment a current range of selected cells by selecting the next (empty) row. For instance, range A1 to A20 is currently selected and attached to an existing pie chart on the same sheet as the data. Each month I add a new row of data so that the existing pie chart includes it too. So, the macro would increment the current range (A1 to A20) to A1 to A21 for the next month.

    I have this same pie chart/range on 76 sheets covering 76 product inventory balances, so going sheet by sheet and manually changing the range is what I am currently doing every month. Ugh! That's why a macro would be great!
    Last edited by ScubaGuy; 03-08-2013 at 02:08 PM.

  2. #2
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: How to increment a a range of cells (by one cell) which is the output to my pie chart?

    Hi,
    you could use a number of different ways

    why not use
    Please Login or Register  to view this content.
    that way each time you add a new row it will include it
    Regards
    Sean

    Please add to my reputation if you think i helped
    (click on the star below the post)
    Mark threads as "Solved" if you have your answer
    (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code:
    [code] Your code here [code]
    Please supply a workbook containing example Data:
    It makes its easier to answer your problem & saves time!

  3. #3
    Registered User
    Join Date
    11-21-2012
    Location
    Sierra Vista, AZ
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: How to increment a a range of cells (by one cell) which is the output to my pie chart?

    I guess I better re-state my question please, to..

    How to increment a CHART DATA RANGE with a macro?

  4. #4
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: How to increment a a range of cells (by one cell) which is the output to my pie chart?

    Hi, heres a link to a site that might help with dynamic ranges that will update the chart everytime you add a row

    http://chandoo.org/wp/2009/10/15/dyn...t-data-series/

+ 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