How to change an area chart series type

NatetheGreat

Active Member
Joined
Nov 18, 2013
Messages
268
I have a chart with three data series plotted on it. Series1 is a line, Series2 and Series3 are area chart series types. I have figured out how to change the forma/color of the line, but it is proving to be quite difficult for the area series.

For the line I used
Code:
ActiveChart.SeriesCollection(1).Format.Line.Weight = 2
    ActiveChart.SeriesCollection(1).Border.Color = RGB(255, 255, 0)

But when trying to adapt this for the 2nd (Area) series I try
Code:
 ActiveChart.SeriesCollection(2).Format.Line.Weight = 1
    ActiveChart.SeriesCollection(2).Border.Color = RGB(153, 204, 255)

But what this does is just colour the lines around he area rather than the entire area. I cant even begin to think how I'm going to set the transparency level !!

Please assist.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi Nate

Try:

Code:
ActiveChart.SeriesCollection(2).Format.Fill.ForeColor.RGB = RGB(153, 204, 255)
 
Upvote 0

Forum statistics

Threads
1,215,006
Messages
6,122,666
Members
449,091
Latest member
peppernaut

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top