Sub obuject_delete() Dim i As Long With Worksheets("Sheet1") For i = .Shapes.Count To 1 Step -1 If .Shapes(i).Type = msoTextBox Then .Shapes(i).Delete Next i End With End Sub |
Sub obuject_delete() Dim i As Long With Worksheets("Sheet1") For i = .Shapes.Count To 1 Step -1 If .Shapes(i).Type = msoFreeform Then .Shapes(i).Delete Next i End With End Sub |