+ Reply to Thread
Results 1 to 3 of 3

Formatting Multiple Series In An Excel Chart

Hybrid View

  1. #1
    Registered User
    Join Date
    01-27-2014
    Location
    canada
    MS-Off Ver
    2010
    Posts
    2

    Formatting Multiple Series In An Excel Chart

    Hi,

    I am trying to format data labels in a pivot chart that has multiple series. I understand that VBA code would be the easiest way but I am not familiar with it, can anyone let me know how to write a script that would change the text on the data labels to white and bold?

    Thank you

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

    Re: Formatting Multiple Series In An Excel Chart

    Hi
    try this

    Sub format_labels()
    Dim ss As Series
    For Each ss In ActiveChart.SeriesCollection
        If ss.HasDataLabels = True Then
            With ss.DataLabels.Font
                .Bold = True
                .Color = RGB(256, 256, 256)
            End With
        End If
    Next ss
    End Sub

  3. #3
    Registered User
    Join Date
    01-27-2014
    Location
    canada
    MS-Off Ver
    2010
    Posts
    2

    Re: Formatting Multiple Series In An Excel Chart

    Hi

    works great except that when I made a different selection on one of the slicers then the formatting reverts back. Is there a way to have the code autorun every time a selection is made? I have multiple charts on the same page that would need updating. Thanks

+ 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. Formatting Multiple Series In An Excel Chart
    By jerseyguy1996 in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 02-25-2016, 06:42 AM
  2. Formatting Multiple Series in a Chart
    By sanjosedave in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-20-2013, 03:17 AM
  3. [SOLVED] Formatting Multiple Series in Line Chart
    By Nerd1 in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 02-01-2013, 01:56 PM
  4. Applying conditional formatting to a multiple series chart
    By sikey in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 07-02-2010, 09:55 AM
  5. Formatting Multiple Series in a Chart
    By jerseyguy1996 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2009, 09:22 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