+ Reply to Thread
Results 1 to 4 of 4

excel 2007 chart macro graphs data only from sheet on which macro was recorded

  1. #1
    Registered User
    Join Date
    02-19-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2007
    Posts
    4

    excel 2007 chart macro graphs data only from sheet on which macro was recorded

    i've got a few dozen sheets full of data that i need to graph.
    all sheets are set up/formatted the same, therefore, i will be using the same data range for each chart. (ex.X=$C$6:$C$1000 , Y=$D$6:$D$1000)
    the problem i need to overcome:
    when i run the macro on sheet 'B' that I recorded on sheet 'A', it still grabs the data from sheet 'A'.
    in the example below i recorded the macro on sheet ea13-0243. when i switch to sheet ea13-0244 and run the macro, it uses the data from ea13-0243. What do i need to change in the program to do away with the 'ea13-0243' that will allow the active sheet data be graphed?
    Thanks for your help





    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    01-13-2013
    Location
    Oklahoma
    MS-Off Ver
    Office 2007 / Office 2010
    Posts
    123

    Re: excel 2007 chart macro graphs data only from sheet on which macro was recorded

    This should allow it to work on whatever sheet is the active sheet.

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    01-13-2013
    Location
    Oklahoma
    MS-Off Ver
    Office 2007 / Office 2010
    Posts
    123

    Re: excel 2007 chart macro graphs data only from sheet on which macro was recorded

    You're welcome. Thanks for the rep.

  4. #4
    Forum Contributor
    Join Date
    01-13-2013
    Location
    Oklahoma
    MS-Off Ver
    Office 2007 / Office 2010
    Posts
    123

    Re: excel 2007 chart macro graphs data only from sheet on which macro was recorded

    Here's a way to set the data without having to go to a higher number than needed for the last row.

    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)

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