Fill an area between 2 curves in an Excell chart?

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?
 
G

Guest

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
 
A

Andy Pope

Hi,

2 ways,

activechart.Shapes.SelectAll
selection.delete

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

Cheers
Andy
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top