+ Reply to Thread
Results 1 to 2 of 2

Using cell value to set range for chart

  1. #1
    Registered User
    Join Date
    06-17-2015
    Location
    missouri
    MS-Off Ver
    2010
    Posts
    16

    Using cell value to set range for chart

    After recording a macro where I manually changed the data range here is what I got.
    Please Login or Register  to view this content.

    I made formulas so that the starting and ending cells are always located in "D1" "D2" and "D3". After trying to change it so that the code can be looped and used in multiple sheets here is what I tried.

    Please Login or Register  to view this content.
    I can't seem to find a way to use the value from set cells to create the new data range for a chart of the same sheet. Thanks allTest Sheet (Updated Jonathan's Version 6.19.15).xlsm

  2. #2
    Forum Contributor yay_excel's Avatar
    Join Date
    08-12-2011
    Location
    Canada
    MS-Off Ver
    2013
    Posts
    190

    Re: Using cell value to set range for chart

    I don't think you can use ActiveSheet in a string. Try ActiveSheet.Name instead. Your range parameter will be like:

    Please Login or Register  to view this content.

+ 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. Getting chart range from range address contained in a cell
    By Journeyman3000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-03-2013, 08:10 PM
  2. Change x and y range on chart with a cell value
    By Vergil229 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-31-2013, 11:49 AM
  3. Replies: 3
    Last Post: 03-10-2013, 03:07 AM
  4. Replies: 1
    Last Post: 02-29-2012, 05:56 PM
  5. How do I chart the same data cell on a range of worksheets?
    By Keith in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-07-2005, 11:06 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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1