+ Reply to Thread
Results 1 to 4 of 4

Problem in creating chart using VBA macro

  1. #1
    Registered User
    Join Date
    11-27-2013
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    2

    Exclamation Problem in creating chart using VBA macro

    Hi All,

    I have created chart using Excel VBA in the version 2010.
    The following is the code. This has been working fine in my system which has 2010.

    Please Login or Register  to view this content.
    But, when i tried running this in Excel 2003.
    I am hitting the "object doesn't support this property" error.
    The error is hitting in this line of code.-ActiveSheet.Shapes.AddChart.Select

    Please help me to understand whether this is the issue with the Excel versio.
    also, please help to get resolved of this issue.

    Moderator Note:

    Pls use code tags around your code next time as per forum rules.
    Last edited by Fotis1991; 11-27-2013 at 02:53 AM.

  2. #2
    Forum Contributor
    Join Date
    11-05-2013
    Location
    Germany
    MS-Off Ver
    Excel 2013
    Posts
    120

    Re: Problem in creating chart using VBA macro

    Hey,

    found the answer in another post.

    "There was no Shapes.AddChart method in 2003. Use CHarts.Add and then:"

    Please Login or Register  to view this content.
    here is the link to the original post and all credit for the solution goes to romperstomper

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Problem in creating chart using VBA macro

    Another method for what it's worth.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  4. #4
    Registered User
    Join Date
    11-27-2013
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    2

    Thumbs up [Solved] Re: Problem in creating chart using VBA macro

    Thanks for the help, Alphafrog!!
    This is working for me well.

+ 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. Problem creating a dynamic chart
    By kbaruin in forum Excel General
    Replies: 0
    Last Post: 09-20-2012, 08:55 AM
  2. Problem creating OHLC chart
    By jrp1982 in forum Excel General
    Replies: 4
    Last Post: 07-04-2012, 08:12 AM
  3. Excel 2007 : Problem creating Clustered Column Chart
    By Zotius in forum Excel General
    Replies: 0
    Last Post: 04-21-2010, 04:38 AM
  4. Problem creating chart?
    By sanjeev40084 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-15-2009, 12:07 PM
  5. Problem with empty cells when creating chart using vba
    By Xavier in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-17-2006, 05:35 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