Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
syseng
 
Posts: n/a
Default Fill an area between 2 curves in an Excell chart?

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?
  #2   Report Post  
Jon Peltier
 
Posts: n/a
Default

You can do it with an area chart, or by adapting this VBA technique:

http://peltiertech.com/Excel/Charts/VBAdraw.html

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


syseng wrote:

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?

  #3   Report Post  
Ali Baba
 
Posts: n/a
Default

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

"Jon Peltier" wrote:

You can do it with an area chart, or by adapting this VBA technique:

http://peltiertech.com/Excel/Charts/VBAdraw.html

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


syseng wrote:

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?


  #4   Report Post  
Andy Pope
 
Posts: n/a
Default

Hi,

2 ways,

activechart.Shapes.SelectAll
selection.delete

do while activechart.Shapes.Count 0
activechart.Shapes(activechart.Shapes.Count).Delet e
loop

Cheers
Andy

Ali Baba wrote:
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

"Jon Peltier" wrote:


You can do it with an area chart, or by adapting this VBA technique:

http://peltiertech.com/Excel/Charts/VBAdraw.html

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


syseng wrote:


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?



--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
  #5   Report Post  
Ali Baba
 
Posts: n/a
Default

Thank you Andy



"Andy Pope" wrote:

Hi,

2 ways,

activechart.Shapes.SelectAll
selection.delete

do while activechart.Shapes.Count 0
activechart.Shapes(activechart.Shapes.Count).Delet e
loop

Cheers
Andy

Ali Baba wrote:
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

"Jon Peltier" wrote:


You can do it with an area chart, or by adapting this VBA technique:

http://peltiertech.com/Excel/Charts/VBAdraw.html

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


syseng wrote:


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?


--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info



  #6   Report Post  
syseng
 
Posts: n/a
Default

Thanks Jon,

I will give this a try.

syseng

"Jon Peltier" wrote:

You can do it with an area chart, or by adapting this VBA technique:

http://peltiertech.com/Excel/Charts/VBAdraw.html

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


syseng wrote:

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?


  #7   Report Post  
syseng
 
Posts: n/a
Default

Thanks Jon!

syseng

"Jon Peltier" wrote:

You can do it with an area chart, or by adapting this VBA technique:

http://peltiertech.com/Excel/Charts/VBAdraw.html

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


syseng wrote:

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?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Activating a Chart object Hari Prasadh Charts and Charting in Excel 6 August 2nd 05 07:22 PM
Resize chart area without resizing plot area Janwillem van Dijk Charts and Charting in Excel 2 August 2nd 05 01:52 AM
Identifying the Active Fill Color Steve Conary Excel Discussion (Misc queries) 3 December 9th 04 04:45 AM
Fill area beneath a scatter plot JZip Charts and Charting in Excel 4 December 8th 04 01:59 PM
Area Chart Formatting Question Avrilon Charts and Charting in Excel 3 December 2nd 04 09:14 PM


All times are GMT +1. The time now is 10:49 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"