Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.charting
|
|||
|
|||
![]()
Very simple question....
Is there a way to get the max number of the SeriesCollection? The reason I am asking is that I use a date range to properly configure my chart Based off the dates, I may have different amount if seriescollections. |
#2
![]()
Posted to microsoft.public.excel.charting
|
|||
|
|||
![]()
I'm not sure what you're asking for. I hope this brackets your question, or
at least gives you a hint. The maximum number of series in a chart: 255 The number of points in a series: ActiveChart.SeriesCollection(i).Points.Count The maximum Y value in a series: WorksheetFunction.Max(ActiveChart.SeriesCollection (i).Values) The maximum X value in a series: WorksheetFunction.Max(ActiveChart.SeriesCollection (i).XValues) Loop these last two to get the overall max: For i=1 to ActiveChart.SeriesCollection.Count If MaxY < WorksheetFunction.Max(ActiveChart.SeriesCollection (i).Values) Then MaxY = WorksheetFunction.Max(ActiveChart.SeriesCollection (i).Values) Then End If Next - Jon ------- Jon Peltier, Microsoft Excel MVP Peltier Technical Services, Inc. http://PeltierTech.com/WordPress/ _______ "EAB1977" wrote in message ... Very simple question.... Is there a way to get the max number of the SeriesCollection? The reason I am asking is that I use a date range to properly configure my chart Based off the dates, I may have different amount if seriescollections. |
#3
![]()
Posted to microsoft.public.excel.charting
|
|||
|
|||
![]()
Jon, that helped a lot! Thanks!
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Unable to get SeriesCollection runtime error | Charts and Charting in Excel | |||
.SeriesCollection(2).Name and .Deselect | Charts and Charting in Excel | |||
Creating a plot in Excel with SeriesCollection | Charts and Charting in Excel | |||
Chart: range info from seriescollection? | Charts and Charting in Excel | |||
SeriesCollection Values Property Oddity | Charts and Charting in Excel |