+ Reply to Thread
Results 1 to 3 of 3

Excel is plotting additional series not asked by the VBA code.

  1. #1
    Registered User
    Join Date
    07-06-2012
    Location
    Kingston, Canada
    MS-Off Ver
    Excel 2007
    Posts
    21

    Excel is plotting additional series not asked by the VBA code.

    Hello Everyone,

    I am new to the forum and VBA coding. I have created some code that is to plot a series of data in an XY Scatter plot. However, when I run the code it plots additional series on the plot that I have not asked the code to plot.

    A small portion of the code is below, which draws the first chart on the worksheet. The additional number of series is much higher on worksheets Plate w Hole 1 and above. I have attached a copy of the workbook as well. The entire code will not run on most computers because it is communicating with another piece of software. However the graph drawing is in the post processing stage of my analysis and only occurs within Excel.

    Please Login or Register  to view this content.
    Attachment 166414

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Excel is plotting additional series not asked by the VBA code.

    You might try selecting an empty isolated cell prior to creating the chart to prevent the automatic inclusion of unwanted series. If this doesn't work, you could try counting the series immediately after the creation of the chart and deleting them.
    Martin

  3. #3
    Registered User
    Join Date
    07-06-2012
    Location
    Kingston, Canada
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Excel is plotting additional series not asked by the VBA code.

    Thank you mrice simply selecting an empty cell prior to creating each chart prevented the inclusion of unwanted series.

+ 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