+ Reply to Thread
Results 1 to 9 of 9

auto charts with single data

  1. #1
    Registered User
    Join Date
    01-23-2014
    Location
    abu dhabi
    MS-Off Ver
    Excel 2007
    Posts
    34

    auto charts with single data

    Greetings,

    Please find attached one sample excel file I am attaching herewith. I have a data set as shown in sheet1. My requirement is to create multiple charts as shown in Chart sheets ( TYPE1, TYPE 2 and TYPE3) at one single shot through macro or any other means.

    Regards
    Rajesh
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: auto charts with single data

    Hi try this macro
    you may need to adjust the source range if you have more rows than in your workbook

    Please Login or Register  to view this content.
    Last edited by NickyC; 06-18-2017 at 10:23 PM.

  3. #3
    Registered User
    Join Date
    01-23-2014
    Location
    abu dhabi
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: auto charts with single data

    Greetings,

    Thank you for your effort. While running error is coming in the line

    ActiveChart.FullSeriesCollection(1).XValues = XRange


    it says

    "compile Error, Method or Data Member Not found"

    Regards
    Rajesh

  4. #4
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: auto charts with single data

    Hi
    that probably means it is not recognising XRange as a range
    did you set a valid range for XRange - eg C1:J1 in your original sheet?
    also, does it include a valid sheet name?

  5. #5
    Registered User
    Join Date
    01-23-2014
    Location
    abu dhabi
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: auto charts with single data

    Hi.. Greetings,

    I worked with the same file which I had sent. Again I enclosing the raw file with macro ..

    Thanks
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: auto charts with single data

    Hi
    the macro worked fine on your sheet when I ran it. A bit of googling found other users with this problem. Does this solve it?

    https://www.mrexcel.com/forum/excel-...not-found.html

    alternatively, try changing the problem line to :

    Please Login or Register  to view this content.
    and see if that works

  7. #7
    Registered User
    Join Date
    01-23-2014
    Location
    abu dhabi
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: auto charts with single data

    Sorry, checked and the problem still not solved.

    Regards
    Rajesh

  8. #8
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: auto charts with single data

    sorry Rajesh I ran it again, and again it worked fine for me. Can you check that all the sheet names, variable names and ranges and range names are correct?

    https://msdn.microsoft.com/VBA/Langu...ound-error-461

    if so, I don't think I can help you. It may be an issue with your computer.

  9. #9
    Registered User
    Join Date
    01-23-2014
    Location
    abu dhabi
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: auto charts with single data

    Thanks Nicky for your trial. May be some version/ my system issues.
    Regards
    Rajesh

+ 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. Export all charts (embedded and single chart sheet) to a single PDF File
    By trizzo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-23-2016, 09:56 AM
  2. [SOLVED] Charts auto expand source data
    By cheesemeister in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 10-14-2015, 09:19 PM
  3. Auto Updating Data and Charts
    By jfreebolin in forum Excel General
    Replies: 1
    Last Post: 06-24-2014, 07:23 AM
  4. How to extract charts and data into single view?
    By toplisek in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-01-2013, 11:54 AM
  5. Auto-updating Trend Charts w/ Data from New Workbooks
    By carguru in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-15-2011, 11:45 AM
  6. Auto Data Picking for Charts
    By Reyan123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-12-2010, 07:22 PM
  7. Auto Charts with expanding data???
    By martinpe in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-05-2008, 12:12 AM

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