+ Reply to Thread
Results 1 to 4 of 4

Add Charts Macro

  1. #1
    Registered User
    Join Date
    03-14-2014
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    9

    Add Charts Macro

    I am getting an "Object doesn't support this property or method" error at ".SeriesCollection.XValues = Sheets("Plot").Range(Cells(3, 1), Cells(3, 1).xlDown)". Could somebody please offer an explanation and solution?

    Please Login or Register  to view this content.
    Thanks!

  2. #2
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: Add Charts Macro

    One problem that I see is the missing .End. look at this:

    Please Login or Register  to view this content.
    If you are pleased with a member's answer then use the Star icon to rate it.

  3. #3
    Forum Expert judgeh59's Avatar
    Join Date
    02-07-2013
    Location
    Boise, Idaho
    MS-Off Ver
    Excel 2016
    Posts
    2,310

    Re: Add Charts Macro

    will this work

    Please Login or Register  to view this content.
    replace the .SeriesCollection.XXXX with this....without seeing your data I'm just shooting in the dark....on fully automatic....
    Ernest

    Please consider adding a * if I helped

    Nothing drives me crazy - I'm always close enough to walk....

  4. #4
    Registered User
    Join Date
    03-14-2014
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Add Charts Macro

    Buran, I certainly was missing the .End. Thanks. The .SetSourceData method works nicely. Here if my final code:

    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. [SOLVED] macro to change charts by name
    By katto01 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-31-2012, 10:19 AM
  2. Macro for charts
    By sandiptemkar in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-13-2011, 07:21 AM
  3. SPC charts macro
    By Farooko in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-27-2007, 12:38 PM
  4. [SOLVED] Macro and charts
    By Chris in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-11-2006, 03:05 PM
  5. [SOLVED] Charts using Macro
    By Aziz Ahmedabadwala in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-26-2006, 11:25 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