ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Erase Drawing Object (https://www.excelbanter.com/excel-programming/399327-erase-drawing-object.html)

smandula

Erase Drawing Object
 
In a given range, say B1 to AX33, randomly there are
line draw objects.
Obviously, highlite such cell to individually delete one line or
object
at a time

How would you delete all the objects in a range.

With Thanks


Don Guillett

Erase Drawing Object
 
Not sure exactly what you are looking for but try these ideas

Sub DeleteSheetDrawingObjects()
ActiveSheet.DrawingObjects.Delete
ActiveWorkbook.Save
End Sub

Sub noborders()
Worksheets("Sheet1").Range("A1:D4") _
.Borders.LineStyle = xlNone
End Sub
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"smandula" wrote in message
oups.com...
In a given range, say B1 to AX33, randomly there are
line draw objects.
Obviously, highlite such cell to individually delete one line or
object
at a time

How would you delete all the objects in a range.

With Thanks



smandula

Erase Drawing Object
 
Thanks Don Guillett

Your solution worked great



Don Guillett

Erase Drawing Object
 
Glad to help

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"smandula" wrote in message
ps.com...
Thanks Don Guillett

Your solution worked great





All times are GMT +1. The time now is 05:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com