Whats the VBA code to delete all the shapes on a worksheet?
Whats the VBA code to delete all the shapes on a worksheet?
Sub deleteshapes()
For Each shp In ActiveSheet.Shapes
shp.Delete
Next shp
End Sub
Sub TryNow()
Dim mySht As Worksheet
Set mySht = ActiveSheet
mySht.Shapes.SelectAll
Selection.Delete
End Sub
--
HTH,
Bernie
MS Excel MVP
"aftamath" <[email protected]> wrote in message
news:[email protected]...
> Whats the VBA code to delete all the shapes on a worksheet?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks