+ Reply to Thread
Results 1 to 5 of 5

Need a graph to call to a constant cell even after a row is inserted

  1. #1
    Registered User
    Join Date
    05-11-2020
    Location
    Texas
    MS-Off Ver
    2013
    Posts
    3

    Need a graph to call to a constant cell even after a row is inserted

    I am trying to put together a chart that calls to data on a different sheet. There is a macro that inserts a new row so each time new data is inserted it shifts the range down from row 8 to row 9. How can I get the range to start at row 8 even after a new row is inserted? I thought indirect might work but it says the function isn't valid.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016
    Posts
    3,277

    Re: Need a graph to call to a constant cell even after a row is inserted

    Hi,

    Have you tried a named range? You could put the INDIRECT formula you need in the "refers to" box and then use the named range in your chart data.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    05-11-2020
    Location
    Texas
    MS-Off Ver
    2013
    Posts
    3

    Re: Need a graph to call to a constant cell even after a row is inserted

    That works! Wish I could pay you for this. Thank you very much.

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016
    Posts
    3,277

    Re: Need a graph to call to a constant cell even after a row is inserted

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  5. #5
    Registered User
    Join Date
    05-11-2020
    Location
    Texas
    MS-Off Ver
    2013
    Posts
    3

    Re: Need a graph to call to a constant cell even after a row is inserted

    Done and done. Thanks again!

+ 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] is there a possibility to use a constant as named argument in a function call
    By AEberli in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-04-2019, 11:28 AM
  2. Replies: 0
    Last Post: 10-09-2015, 06:45 AM
  3. call appropriate graph from different worksheet
    By naderassaleh in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-08-2014, 06:16 PM
  4. Call a constant/variable by creating another variable
    By pienaaj in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-12-2013, 10:36 AM
  5. [SOLVED] How do you call a graph from JUST vba?
    By ExcelVBANoobie in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-08-2013, 05:27 PM
  6. Line Graph - Excel doesnt like non-constant increments
    By spadez8 in forum Excel General
    Replies: 1
    Last Post: 01-20-2011, 09:23 PM
  7. how do I plot a constant value in a line graph?
    By Debby Blaine in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-11-2006, 04:15 AM

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