+ Reply to Thread
Results 1 to 4 of 4

Updating Line Chart with Named Range

  1. #1
    Registered User
    Join Date
    01-02-2014
    Location
    Tri-State Area, USA
    MS-Off Ver
    Excel 2010
    Posts
    26

    Exclamation Updating Line Chart with Named Range

    Hi All,

    I've been banging my head against the wall trying to finish off this small detail on part of a much larger macro. I have data on Sheet1 and a line chart ("Chart 1") on Sheet2. As the macro moves throughout the data on Sheet1 it updates a named range called "MyRange". The idea is to have the existing line chart on Sheet2 use use "MyRange" as it's data range (it contains both X and Y axis values). No matter what I've done I cannot get the chart to adopt this named range. When I tried recording excel does not capture that part of the process.

    Can someone please help and advise on how I can get the line chart to use "MyRange" as its data range? I have left a code snippet below that is the jist of what I'm trying for.

    Thank you in advance for any help you can provide

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Updating Line Chart with Named Range

    Hi

    does this work:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-02-2014
    Location
    Tri-State Area, USA
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: Updating Line Chart with Named Range

    I'm getting a 'method range of object global' failed on that line. Any suggestions on how I can amend this?

    Thank you

  4. #4
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Updating Line Chart with Named Range

    Hi
    does your workbook include a range named "MyRange"? if not, the macro will fail

+ 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. Adding row to a named range-updating the named range address
    By kjsconv in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-12-2013, 11:22 PM
  2. Automatically Save updating Cell range Value Every Minute and make line chart
    By geneeus in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-24-2012, 07:50 AM
  3. [SOLVED] Updating a Named range Automatically
    By rob_parkhill in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-10-2006, 04:40 AM
  4. [SOLVED] Updating a named range
    By joala in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-16-2006, 02:15 PM
  5. [SOLVED] Updating a named range with SQL like command
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-21-2005, 04:05 PM

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