+ Reply to Thread
Results 1 to 5 of 5

ChartObject will not add to the activesheet when data set is too large...

  1. #1
    Registered User
    Join Date
    04-25-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    91

    ChartObject will not add to the activesheet when data set is too large...

    Hello,

    Here is a good one I suspect.

    I wasnt to graph a large quantity of data. I have made a macro that successfully plots a small subset of my data in an organized fashion. I always use a small subset of data to create my macros and then test on the full data set to confirm that there are no bugs. Usually I have no issues scaling up. But this time I cant understand why my chart object will not be created if my data size is too large. I am not trying to plot more than the 250 graphs at once --> just FYI.

    To explain my problem will be too difficult so I have attached the small subset of test data and the full size data for comparison.

    I hope someone can give me an answer as to why this is happening.

    My macro code is below.

    "test" file is the large file --> Macro will not create the chart object in this workbook.
    "small book2" is the small file --> Macro will create the chart object in this workbook.

    Thanks!!!

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    04-25-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    91

    Re: ChartObject will not add to the activesheet when data set is too large...

    Maybe I should mention, the graph to be plotted will only plot columns which has "AAAA" as the header. When the Loop is functional (I commented it out) it will run down all the columns and plot separate charts for each different header.

  3. #3
    Registered User
    Join Date
    04-25-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    91

    Re: ChartObject will not add to the activesheet when data set is too large...

    Bumping to the top...

    If anyone needs any other information, please ask.

    Thanks!

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: ChartObject will not add to the activesheet when data set is too large...

    The problem is that when you add the chart it tries to populate it with data in the current region.
    This causes the operation to fail.

    Move the active cell to an empty region

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  5. #5
    Registered User
    Join Date
    04-25-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    91

    Re: ChartObject will not add to the activesheet when data set is too large...

    Okay Andy. That did work. I thought that the cahrt object was independant from the current region but apparently not.

    Thank you 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. Display ChartObject from a datavalidation list
    By bktong in forum Excel General
    Replies: 1
    Last Post: 02-05-2011, 06:34 AM
  2. [SOLVED] Passing chartobject as a parameter to sub
    By David Cohen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-21-2005, 04:05 PM
  3. [SOLVED] Manipulating chartobject while workbook is shared.
    By Shelby Haynes in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2005, 07:05 PM
  4. [SOLVED] how to set a variable to a Chart? not ChartObject
    By Rich in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-06-2005, 03:05 PM
  5. [SOLVED] ChartObject Name Restricion or Excel Bug
    By Gaston in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-14-2005, 02:06 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