+ Reply to Thread
Results 1 to 2 of 2

chart default series

  1. #1
    Registered User
    Join Date
    02-22-2011
    Location
    New Zealand
    MS-Off Ver
    Excel 2007
    Posts
    1

    chart default series

    I'm creating a number of different graphs for analysis of data.
    If I create a new graph through the menu system I get a blank graph with no series data as expected. If I create a new graph with VBA "ActiveSheet.Shapes.AddChart.Select" the computer hangs for a minute or two then produces a new chart with several series already in it based on large areas of the spreadsheet.

    How can I stop this from happening??

    I'm using
    Do Until .SeriesCollection.Count = 0
    .SeriesCollection(1).Delete
    Loop

    To clear the problem but I would like excel to stop producing the problem to start with.

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

    Re: chart default series

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

    Please use code tags, even for small chunks of code.

    If the active cell is in a area of data excel will attempt to use the current region as data source.

    Either make sure the active cell is away from all data or use the code posted to remove unwanted data series.
    Cheers
    Andy
    www.andypope.info

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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