Results 1 to 21 of 21

Change colour of chart series with VBA

Threaded View

esbencito Change colour of chart series... 10-16-2017, 03:08 AM
NickyC Re: Change colour of chart... 10-16-2017, 04:52 AM
esbencito Re: Change colour of chart... 10-16-2017, 05:07 AM
NickyC Re: Change colour of chart... 10-16-2017, 05:56 AM
esbencito Re: Change colour of chart... 10-16-2017, 06:18 AM
NickyC Re: Change colour of chart... 10-16-2017, 09:15 PM
esbencito Re: Change colour of chart... 10-16-2017, 10:39 PM
NickyC Re: Change colour of chart... 10-16-2017, 11:16 PM
esbencito Re: Change colour of chart... 10-16-2017, 11:48 PM
humdingaling Re: Change colour of chart... 10-17-2017, 12:04 AM
esbencito Re: Change colour of chart... 10-17-2017, 12:31 AM
humdingaling Re: Change colour of chart... 10-17-2017, 12:31 AM
esbencito Re: Change colour of chart... 10-17-2017, 01:03 AM
humdingaling Re: Change colour of chart... 10-17-2017, 12:34 AM
NickyC Re: Change colour of chart... 10-17-2017, 12:46 AM
humdingaling Re: Change colour of chart... 10-17-2017, 01:23 AM
esbencito Re: Change colour of chart... 10-17-2017, 02:08 AM
humdingaling Re: Change colour of chart... 10-17-2017, 03:05 AM
esbencito Re: Change colour of chart... 10-17-2017, 03:25 AM
humdingaling Re: Change colour of chart... 10-17-2017, 06:55 PM
esbencito Re: Change colour of chart... 10-17-2017, 10:06 PM
  1. #16
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Change colour of chart series with VBA

    arr yes i should just do it right down to bare bones
    would only need to do loops if multiple series/lines/data points per chart is required


    Sub DropDown2_Change()
    
        Dim MyCol As Long
                
        MyCol = Worksheets("Control").Range("E10").Offset(, Worksheets("Control").Range("C8").Value).Interior.Color
    
        With ActiveSheet
            .Shapes("StorePerformanceChart").Chart.SeriesCollection(1).Format.Line.ForeColor.RGB = MyCol
            .Shapes("Bullet Graph").Chart.SeriesCollection(1).Format.Fill.ForeColor.RGB = MyCol
            .Shapes("Chart 7").Chart.SeriesCollection(1).Points(1).Format.Fill.ForeColor.RGB = MyCol
            .Shapes("Chart 11").Chart.SeriesCollection(1).Format.Fill.ForeColor.RGB = MyCol
            .Shapes("Chart 11").Chart.SeriesCollection(1).Format.Glow.Color.RGB = MyCol 'this is glow syntax
            
        End With
        
    End Sub
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Chart Series Automatic Colour
    By AndersonM in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-01-2016, 06:37 AM
  2. VBA to change column chart series colour
    By Jabba69 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-29-2014, 11:51 AM
  3. [SOLVED] Change series colour for all charts on a worksheet.
    By DonaldDump in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-28-2013, 06:12 PM
  4. Colour change column chart based on cell colour
    By Alice21 in forum Excel General
    Replies: 11
    Last Post: 04-05-2011, 10:10 AM
  5. Change colour of chart series
    By downunderthunder in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-06-2010, 09:20 PM
  6. Stacked Area Chart Series Colour Change
    By downunderthunder in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-06-2010, 09:18 PM
  7. Conditional Series Collection Colour for Chart
    By benno87 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-24-2009, 09:54 PM

Tags for this Thread

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