+ Reply to Thread
Results 1 to 2 of 2

Named Ranges and Varying Chart Colors by Slice

  1. #1
    Registered User
    Join Date
    10-15-2009
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    5

    Named Ranges and Varying Chart Colors by Slice

    Hi,



    I have two issues that I've been unable to resolve:



    1) I have a named range of cells called "District Staff" which = B56:B77

    If a user inserts a row anywhere *except for the last cell of the range* the range automatically expands to include the new cell. However, when a user inserts a row by selecting cell B77 and clicking "insert row" then the range does not expand to include cell B78. Is there anyway to fix this?

    I've read up on dynamic ranges...and the tricky thing here is that I have several named ranges stacked on top of each other (so it isn't as simple as taking all the cells in column B with data). For example the named range "Central Staff" is B79:B99. I have reprogrammed the insert row command so that the row is automatically inserted above the activecell; however the range still does not expand to include the final row.



    2) My application automatically produces pie charts as an output. However, each time I close and reopen the program and enter new data the pie charts become monochrome. If I right click on the chart itself and under "fill" select "vary colors by slice" then the chart looks nice again. Is there anyway to get excel to do this automatically? I have saved and re-saved the program numerous times with these correct settings--but after entering in new data the colors disappear.



    Thank you in advance!!

    Katie

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Named Ranges and Varying Chart Colors by Slice

    Hi Katie,

    You might be better advised to post your second Q re the Pie chart as another thread since these are two different sorts of question.

    Re 1.

    There are at least two options I can think of. I see you have Excel 2007. Have you considered converting B56:B77 to a table. The advantage of this is that anything you add on the row immediately below automatically causes the range to expand. Similarly if the range happens to be more than 1 column wide and one column contains a formula, adding a new value on the new row in another column causes the formula to also be automatically added.

    The other way would be to include a blank row as the last row of your range and hide the row. Then anyone inserting a new row will cause the range to expand as normal.

    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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