+ Reply to Thread
Results 1 to 2 of 2

Change chart attribute when chart is grouped

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    05-24-2006
    Location
    Los Angeles
    MS-Off Ver
    2019
    Posts
    328

    Change chart attribute when chart is grouped

    Hi,

    Is there a way via VBA to change the color of SeriesCollection(1) when the chart (named "Chart01") it resides in is part of a grouped collection of shapes and charts named "Group01" on Sheet2?

    Thanks,

    Lawrence

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

    Re: Change chart attribute when chart is grouped

    try this:

    Sub change_colour()
    Sheets("Sheet2").Shapes("Group01).GroupItems("Chart01").Chart.SeriesCollection(1).Format.Line.ForeColor.RGB = RGB(255, 0, 0)
    End Sub

+ 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