Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How do I select all of the charts on a sheet to delete them? The chart names are going to change everytime, so my existing code isn't good enough
ActiveSheet.Shapes.Range(Array("Chart 82", "Chart 83")).Selec Selection.Delet Thanks in advnace John |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Maybe:
ActiveSheet.ChartObjects.Delete John wrote: How do I select all of the charts on a sheet to delete them? The chart names are going to change everytime, so my existing code isn't good enough. ActiveSheet.Shapes.Range(Array("Chart 82", "Chart 83")).Select Selection.Delete Thanks in advnace. John -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this:
Dim i As Integer For i = 1 To ActiveSheet.ChartObjects.Count ActiveSheet.ChartObjects(i).Delete Next -- Message posted from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Charts should not be resized when deleting rows/columns. | Charts and Charting in Excel | |||
Deleting every-other row in a spread sheet | Excel Discussion (Misc queries) | |||
Deleting a sheet | Excel Programming | |||
Deleting Sheet | Excel Programming | |||
Deleting a Sheet | Excel Programming |