Hi all
I swear, Microsoft should include an archive of this site as part of their help files with Excel. You guys are the best!
However, I am not so sure you can help me with this one, but I will place it before you for your minds to tinker with.
I have a Pivot Chart that displays the setting of a test machine on the Y axis, and the machine number and date on the X axis. There is also a selection box to choose cable types and groups over the chart.
It all works rather well, apart from one glaring fault.
To the right of the chart, there is a Legend with different colours refering to different test settings. My manager wants the colours to remain constant in relation to the setting number, regardless of what changes are made to the display settings of the Pivot Chart.
As it stands, if you set it to display all results, across all dates, and across all cable types, the Legend says that setting 653 is Pink. When you adjust the chart to limit the dates, setting 653 will change to something else.
I wrote a macro that goes through each colour to change it to the right setting, but that doesnt work, as the amount of entries in the legend changes according to the parameters of the chart.
So effectively, to cut a long story short, I need something that goes to the effect:
If LegendEntry1 = SettingNo4 Then Color = Green
If LegendEntry1 = SettingNo5 Then Color = Blue
etc, etc for each of the 6 potential variations of colour, setting and legend position.
Can anyone shine any light on the subject for me?
Thanks
Tref
I swear, Microsoft should include an archive of this site as part of their help files with Excel. You guys are the best!
However, I am not so sure you can help me with this one, but I will place it before you for your minds to tinker with.
I have a Pivot Chart that displays the setting of a test machine on the Y axis, and the machine number and date on the X axis. There is also a selection box to choose cable types and groups over the chart.
It all works rather well, apart from one glaring fault.
To the right of the chart, there is a Legend with different colours refering to different test settings. My manager wants the colours to remain constant in relation to the setting number, regardless of what changes are made to the display settings of the Pivot Chart.
As it stands, if you set it to display all results, across all dates, and across all cable types, the Legend says that setting 653 is Pink. When you adjust the chart to limit the dates, setting 653 will change to something else.
I wrote a macro that goes through each colour to change it to the right setting, but that doesnt work, as the amount of entries in the legend changes according to the parameters of the chart.
So effectively, to cut a long story short, I need something that goes to the effect:
If LegendEntry1 = SettingNo4 Then Color = Green
If LegendEntry1 = SettingNo5 Then Color = Blue
etc, etc for each of the 6 potential variations of colour, setting and legend position.
Can anyone shine any light on the subject for me?
Thanks
Tref