+ Reply to Thread
Results 1 to 2 of 2

VBA to change color of bars in a pivot chart

  1. #1
    Registered User
    Join Date
    06-11-2015
    Location
    NE US
    MS-Off Ver
    2013
    Posts
    70

    VBA to change color of bars in a pivot chart

    In my pivot chart I have the seven days of the week on the x-axis and each day of the week has three bars to represent three different work shifts (refer to attachment).

    I don't see a way to change the colors for the bars that correspond to each shift. For example, I would like 1st shift to be represented by blue, 2nd shift to be green, and 3rd shift to be yellow. And each time I update the pivot table with more data the bars in the pivot chart will remain colored when I refresh.

    Is this possible?
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,198

    Re: VBA to change color of bars in a pivot chart

    It is possible, but having 3 series one for each of the shifts is far simpler and needs no code

+ 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. Color the column bars of a chart the same color as the text in the underlying data
    By ajm1991 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2016, 04:55 PM
  2. Replies: 1
    Last Post: 07-22-2015, 07:16 AM
  3. [SOLVED] Possible to conditional format fill color of pivot chart bars?
    By DaveF in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 10-31-2013, 09:12 AM
  4. Change chart color bars VBA code assistance
    By BGiffin2004 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-14-2011, 01:14 PM
  5. how to change color of bars in bar chart based on 2nd variable
    By luv2glyd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2010, 09:49 AM
  6. Replies: 4
    Last Post: 07-05-2006, 11:10 AM
  7. Prevent change of color scheme in Pivot chart
    By Bernd in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-10-2005, 04:06 PM

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