Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a way to delete shapes/objects from a preselected area? I am
currently using the macro to select whether or not to delete a specific shape, but this takes a long time as there are many shapes/objects. A second problem is that when the dialog box is open, you can't determine which shape is selected. Tim Sub delete_objects_in_an_area() Dim shp As Shape For Each shp In ActiveSheet.Shapes shp.Select 'can't determine which shape is selected response = MsgBox("Delete shape?", vbYesNoCancel + vbCritical + vbDefaultButton2) If response = vbYes Then shp.Delete ElseIf response = vbCancel Then Exit Sub End If Next end sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Set Print Area causes Shapes to disappear | Excel Discussion (Misc queries) | |||
Deleting Shapes | Excel Discussion (Misc queries) | |||
Deleting shapes | Excel Programming | |||
Deleting shapes | Excel Programming | |||
Deleting shapes crashes for me. (Excel 97 vba) | Excel Programming |