+ Reply to Thread
Results 1 to 4 of 4

Automation error when creating graphs

  1. #1
    Registered User
    Join Date
    02-06-2008
    Location
    Boston
    Posts
    6

    Automation error when creating graphs

    Hey I get this automation error when I try to create line charts with three series from a array of ranges. The runtime error is -2147221080

    This only happens when I try to create the charts as an object in a worksheet. My macro works fine when creating new sheets.

    My chart creation code looks like this

    Please Login or Register  to view this content.
    Thanks.

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

    HTML Code: 
    Could this be happening in your code - you appear to be working while a chart is active and not a worksheet?
    Martin

  3. #3
    Registered User
    Join Date
    02-06-2008
    Location
    Boston
    Posts
    6
    Thanks for your response. I'm reading that link right now.

  4. #4
    Registered User
    Join Date
    02-06-2008
    Location
    Boston
    Posts
    6
    I guess I had to use activeworksheet.chartobject.chart to modify the properties instead of using activechart.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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