Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This is what you must do:
Dim ThisSeriesCollection As Excel.SeriesCollection ThisSeriesCollection = ThisChart.SeriesCollection If ThisSeriesCollection.Count = 3 Then If ThisSeriesCollection.Item(1).Name = "Jan" _ And ThisSeriesCollection.Item (1).Formula = "=SERIES(Sheet1!$B$7,Sheet1! $A$8:$A$15,Sheet1!$B$8:$B$15,1)" _ And ThisSeriesCollection.Item(2).Name = "Feb" _ And ThisSeriesCollection.Item (2).Formula = "=SERIES(Sheet1!$C$7,Sheet1! $A$8:$A$15,Sheet1!$C$8:$C$15,2)" _ And ThisSeriesCollection.Item(3).Name = "Mar" _ And ThisSeriesCollection.Item (3).Formula = "=SERIES(Sheet1!$D$7,Sheet1! $A$8:$A$15,Sheet1!$D$8:$D$15,3)" Then MsgBox("DataSource is Good") End If End If Woot! Sometimes I surprise myself. LOL |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using a named range as a data source for a chart | Charts and Charting in Excel | |||
Using a named range as a data source for a chart | Excel Worksheet Functions | |||
Using a Named Range for Data Source In A Chart | Charts and Charting in Excel | |||
Setting Source Range For Chart | Excel Programming | |||
change chart source from range to raw data | Excel Programming |