roc_on_the_rocks
Board Regular
- Joined
- Jun 6, 2009
- Messages
- 175
- Office Version
- 365
- Platform
- Windows
On Excel 2003 I was able to set different colors to specific characters on charts titles using a VBA command like this:
This was very useful because, imagine a chart containing Temperature data plotted with red lines, I'd make the "Temperature" characters on the Y-axis red too. If "Pressure" was plotted with blue lines, I'd make its description on the Y-axis blue too.
Then our company switched to Excel 2007 those commands crashed and I had to 'comment' them.
Would someone here know how to make it work with Excel 2007?
PS.: This apply to all chart titles (X-Y axes and also main chart title).
Thanks a lot,
Code:
ActiveChart.ChartTitle.Select
Selection.Characters(Start:=33, Length:=4).Font.ColorIndex = 3
This was very useful because, imagine a chart containing Temperature data plotted with red lines, I'd make the "Temperature" characters on the Y-axis red too. If "Pressure" was plotted with blue lines, I'd make its description on the Y-axis blue too.
Then our company switched to Excel 2007 those commands crashed and I had to 'comment' them.
Would someone here know how to make it work with Excel 2007?
PS.: This apply to all chart titles (X-Y axes and also main chart title).
Thanks a lot,