+ Reply to Thread
Results 1 to 3 of 3

Can a chart Series Name data and ranges be a variable?

  1. #1
    Registered User
    Join Date
    12-09-2014
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    30

    Can a chart Series Name data and ranges be a variable?

    Hello, fairly new to Excel and stumped. I'm not sure where to post this question.
    Is there a way to use a chart template in many worksheets so the chart is automatically updated once data is entered. When I create a template the series values use the original worksheet. Is there a way to create a template that would use the current worksheet name and values when copied into that new worksheet? I tried the INDIRECT function but it was invalid.
    My problems are with:
    Chart data range ='Worksheet 1'!$B$48:$D$52,'Worksheet 1'!$J$48:$J$52
    edit series ='Worksheet 1'!$J$48:$J$52

    When I copy to another worksheet, obviously the 'Worksheet 1' from the template remains the same.
    I have the worksheet name available in a cell if that makes things easier. cell (A3)
    Does anybody know the syntax to use the current worksheet name in the chart information?
    Any help is appreciated.
    Thank you.
    Mike

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

    Re: Can a chart Series Name data and ranges be a variable?

    Hello,

    I'm not sure that what you're after can be achieved directly.

    You could however, use a small portion of code to generate a chart on each of the worksheets.

    Please Login or Register  to view this content.
    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
    12-09-2014
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    30

    Re: Can a chart Series Name data and ranges be a variable?

    Hi,
    Thank you, I will take a look at your suggestion.

+ 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] Excel VBA Set Chart data range using variable but with two different ranges
    By trizzo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-10-2014, 03:20 PM
  2. Dynamic Charts, Variable Ranges, Non-Consecutive Data Series
    By 5150 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-23-2014, 10:50 AM
  3. [SOLVED] Line chart with variable data series
    By Maroota in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 01-20-2014, 11:49 AM
  4. Creating a chart with multiple data-sources that have variable ranges ( in VBA)
    By Brocktanor in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-05-2013, 02:07 PM
  5. Stop Chart Plotting at 0 when variable is not part of data series
    By andyfive in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 02-22-2012, 02:10 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