View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Pete[_34_] Pete[_34_] is offline
external usenet poster
 
Posts: 9
Default Delete all drawings/shapes except DownArrows

Hi all

I have written a subroutine to delete all shapes on a sheet but not any
DownArrows

Sub DeleteShapesExceptDownArrows()
Dim MyShape As Object
For Each MyShape In ActiveSheet.Shapes
If MyShape.Name < msoShapeDownArrow Then
MyShape.Delete
End If
Next MyShape
End Sub

However, the routine deletes all shapes regardless!

Any ideas?

--
Regards,
Peter Bircher

AutomateXcel
http://www.automatexcel.co.za/index.html

Cell : 083 233 1628
Email: