Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 74
Default add data to a chart

I have a data file which looks like this:

set1 56 47
set1 35 33
....
set2 23 56
set2 33 67
...
etc

I want to write some vb code to plot an xy line chart using the different
sets but am having trouble accessing the chart
The outline of what I want to do is

chart.add
nm=acitvechart.name
then set up the chart ofr the first set - all ok with this
then
for i=2 to n (n=number of sets)
ActiveSheet.ChartObjects(nm).Activate
make the chart active
add the data to the chart as a new series
next i

I am having problems selecting the chart and making it active in the for
loop as I get an error with
ActiveSheet.ChartObjects(nm).Activate
Can anyone help please?

Thanks Chris


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
Chart empty with new data in the dynamic range chart. Feejo Excel Discussion (Misc queries) 16 January 3rd 08 10:03 PM
chart from pivot data does not update x-axis bar chart values - bug jason gers Excel Discussion (Misc queries) 0 April 3rd 07 06:34 PM
How do you link chart source data when you copy the chart? mamagirl Charts and Charting in Excel 1 December 8th 06 02:40 AM
Resizing chart because of refreshing Chart Data through a query jayb Charts and Charting in Excel 0 August 10th 06 04:21 PM
Chart data file lost - need to re-create from chart? LostExcelData Charts and Charting in Excel 1 June 7th 06 07:54 PM


All times are GMT +1. The time now is 10:56 AM.

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"