Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default dynamic graph data series


Hi,

I'm trying to write a macro which creates a scatter plot with 16 data series
on the Y axis, each from an adjacent column. The data on the Y axis is of
variable length and starts in row 29, the first column with data is 8. I'm
trying to use xlDown to find the end. The X axis is a counter. My problem is
I can't seem to get the loop to move though the columns finding the end of
the data.

This is what I've come up with:

For i = 1 To 16

ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(i).XValues = i
ActiveChart.SeriesCollection(i).Values = Range(Cells(29, i + 7),
Cells(End(xlDown), i + 7))
ActiveChart.SeriesCollection(i).Name = "=ratios!R3C2"

Next i


Thanks in advance for any help.

Nick Holway


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
Addional Data Series on Dynamic Chart bugsyb6 Charts and Charting in Excel 2 May 27th 08 03:45 PM
Dynamic Data Series Selection from Data Validation Dropdown? Kris S Charts and Charting in Excel 1 May 23rd 08 11:17 PM
dynamic data range and series Cass Calculator Charts and Charting in Excel 4 February 26th 07 01:55 AM
Dynamic data series Tom Ulincy Charts and Charting in Excel 1 July 16th 06 02:13 AM
Dynamic update for graph data JRJ Excel Worksheet Functions 2 June 20th 06 10:31 PM


All times are GMT +1. The time now is 12:08 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"