+ Reply to Thread
Results 1 to 2 of 2

activesheet.shapes.addchart

  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    activesheet.shapes.addchart

    Hello. Why do I have to add the "shapes" in this code?

    Please Login or Register  to view this content.

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

    Re: activesheet.shapes.addchart

    becuase addchart is a method of the shapes collection. The sheet object does not have a method to directly add charts.

    you could also use the chartobject collection but you need to provide dimensions for the chart.

    So either of these will work

    Please Login or Register  to view this content.
    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)

Similar Threads

  1. Error 1004: ActiveSheet.Shapes.AddChart.Select
    By andynewtovba in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-02-2015, 12:08 PM
  2. [SOLVED] ActiveSheet.Shapes.AddChart.Select Run-Time Error '1004'
    By bcn1988 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-07-2013, 11:30 AM
  3. [SOLVED] Condensing ActiveSheet.Shapes().Visible=True
    By eculver in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-15-2013, 07:52 PM
  4. VBA Code to list all activesheet shapes in excel
    By baisty182 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-23-2011, 10:43 AM
  5. [SOLVED] ActiveSheet.Shapes
    By ole_ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2005, 10:06 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