A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Charts and Charting
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Add curve to existing chart



 
 
Thread Tools Display Modes
  #1  
Old October 16th, 2003, 09:55 AM
daMike
external usenet poster
 
Posts: n/a
Default Add curve to existing chart

Hello,

I should add to an existing chart another curve with VBA.
The Charttyp is an XY-Plot! I work with WinXP and Excel 2002!

Hope somebody can help me!

Thanks in advance!
daMike
  #2  
Old October 16th, 2003, 11:25 AM
Tushar Mehta
external usenet poster
 
Posts: n/a
Default Add curve to existing chart

Turn on the macro recorder (Tools | Macro Record new macro...), copy
the data, select the chart, select Edit | Paste Special..., follow the
directions, and when done, turn off the recorder. XL will give you the
necessary code, which you can further adapt.

--
Regards,

Tushar Mehta
MS MVP Excel 2000-2003
www.tushar-mehta.com
Excel, PowerPoint, and VBA tutorials and add-ins
Custom Productivity Solutions leveraging MS Office


In article ,
says...
Hello,

I should add to an existing chart another curve with VBA.
The Charttyp is an XY-Plot! I work with WinXP and Excel 2002!

Hope somebody can help me!

Thanks in advance!
daMike

  #3  
Old October 16th, 2003, 06:25 PM
Jon Peltier
external usenet poster
 
Posts: n/a
Default Add curve to existing chart

Mike -

The macro recorder is a pretty good tool for finding the code to perform
a task. Usually the recorded macro works fine. Unfortunately it
doesn't always give you very efficient code. I have some code samples
on this web page which can help you out:

http://www.geocities.com/jonpeltier/...kChartVBA.html

- Jon
-------
Jon Peltier, Microsoft Excel MVP
http://www.geocities.com/jonpeltier/Excel/index.html
_______

daMike wrote:

Hello,

I should add to an existing chart another curve with VBA.
The Charttyp is an XY-Plot! I work with WinXP and Excel 2002!

Hope somebody can help me!

Thanks in advance!
daMike


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:02 AM.


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