Fill an area between 2 curves in an Excell chart?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I created an excell x-y chart that has 4 curves on it. Is it possible to
select 2 of the curves and shade the area between them?
 
Hi Jon

I used your technique and it worked but how do I clear the shapes if I want
to plot something else. I know this can be done by selecting the shapes then
delete but is there a way to write VBA to clear them with a click of a
button??

thanks
 
Hi,

2 ways,

activechart.Shapes.SelectAll
selection.delete

do while activechart.Shapes.Count > 0
activechart.Shapes(activechart.Shapes.Count).Delete
loop

Cheers
Andy
 
Thank you Andy



Andy Pope said:
Hi,

2 ways,

activechart.Shapes.SelectAll
selection.delete

do while activechart.Shapes.Count > 0
activechart.Shapes(activechart.Shapes.Count).Delete
loop

Cheers
Andy
 
Back
Top