Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I would like to code an if-then or Case statement that does something like this: If ActiveChart.SeriesCollection(2) doesn’t exist, Then ActiveChart.SeriesCollection.NewSeries.Add ActiveChart.SeriesCollection(2).XValues = "=Sheet1!R1C9:R2C9" ActiveChart.SeriesCollection(2).Values = "=Sheet1!R1C10:R2C10" Else ActiveChart.SeriesCollection(2).XValues = "=Sheet1!R1C9:R2C9" ActiveChart.SeriesCollection(2).Values = "=Sheet1!R1C10:R2C10" The only difference is the NewSeries.Add. What do I substitute for doesn’t exist? 0 (zero) or False? Danz98 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
co existence | Excel Discussion (Misc queries) | |||
False if statement in series results in zero value in chart | Charts and Charting in Excel | |||
COUNTIF statement with 3 criteria checks | Excel Discussion (Misc queries) | |||
if-then statement that checks for existence of series 2 | Charts and Charting in Excel | |||
Could we define series variables in one statement? | Excel Programming |