Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Need to select all shapes and delete them. However there is a chart - "Chart1" - that needs to be deselected, as it needs to remain on the sheet. Have made numerous attempts, this one seems to make sense but doesn't work.... ActiveSheet.Shapes.SelectAll ActiveSheet.Shapes("Chart1").Deselect How do I select all shapes, then deselect Chart1? Thanx, - Mike |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have not tried this, but it might work.
Sub dk() For Each s In ActiveSheet.Shapes If s.Name < "Chart1" Then s.Delete End If Next End Sub "MikeF" wrote in message ... Need to select all shapes and delete them. However there is a chart - "Chart1" - that needs to be deselected, as it needs to remain on the sheet. Have made numerous attempts, this one seems to make sense but doesn't work.... ActiveSheet.Shapes.SelectAll ActiveSheet.Shapes("Chart1").Deselect How do I select all shapes, then deselect Chart1? Thanx, - Mike |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
try ActiveWindow.Visible = False
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Chart deselect question - Before Print | Charts and Charting in Excel | |||
Chart Deselect in 2007 | Excel Programming | |||
code to deselect a chart modified by VBA | Excel Programming | |||
Excel Chart grays out after you deselect it. | Charts and Charting in Excel | |||
How to deselect a selected chart programatically? | Charts and Charting in Excel |