Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel chart source data
Is there a way with code to clear the source data from an chart in Excel? I
don't want to delete the chart just clear the source data when the workbook is closed. Thanks |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Excel chart source data
Hi John,
The following will remove each data series from the active chart. Sub x() ' remove data from chart With ActiveChart Do While .SeriesCollection.Count 0 .SeriesCollection(1).Delete Loop End With End Sub Cheers Andy John wrote: Is there a way with code to clear the source data from an chart in Excel? I don't want to delete the chart just clear the source data when the workbook is closed. Thanks -- Andy Pope, Microsoft MVP - Excel http://www.andypope.info |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
add source data to chart in excel | Charts and Charting in Excel | |||
Excel changes chart source data. Drops the Filename reference from | Excel Discussion (Misc queries) | |||
Excel chart source data y-values can only accept 7 data pts? | Charts and Charting in Excel | |||
excel chart with data source from an access query | Charts and Charting in Excel | |||
Excel 2007 - How do I quickly update a chart using Source data? | Charts and Charting in Excel |