+ Reply to Thread
Results 1 to 3 of 3

Activate method of chart object failed

Hybrid View

  1. #1
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,293

    Activate method of chart object failed

    I have the following code to populate a chart with several named ranges as the source. However when I share the workbook I get the following message from all of the button macros. Is there another way I can call the chart in the macro??

    Sub Button3_Click()
    
    Dim cht As ChartObject
    Dim rng As Range
    
    ActiveSheet.ChartObjects("Chart 1").Activate
        With ActiveChart
                .ChartArea.Select
                .SetSourceData Source:=Range("=CHART_01"), PlotBy:=xlRows
                .HasTitle = True
                .ChartTitle.Text = "FUEL CONSUMPTION 01/02 TRUCKS"
                .SeriesCollection(1).XValues = "=Sheet2!TITLES"
    
        End With
    
    
    
    End Sub
    Any help appreciated, rgds nigel

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

    Create or change charts or PivotChart reports

    Although you can, view existing charts and reports.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,293

    Thanks Andy

    Glad I did'nt say I would make it shareable to anyone. Thanks for the prompt response. Rgds Nigel

+ 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