Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Can I select and delete multiple objects from a worksheet?

I am working in a very large spreadsheet and there are many text boxes and
arrows/line objects on the worksheet. I want to remove all of these wihtout
having to select each individual text box, arrow and line. Is it possible to
select all objects on a worksheet and delete them?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,549
Default Can I select and delete multiple objects from a worksheet?


Yes it is...
Edit | Goto | Special (button) | Objects
--
Jim Cone
Portland, Oregon USA




"Stewart"
wrote in message
I am working in a very large spreadsheet and there are many text boxes and
arrows/line objects on the worksheet. I want to remove all of these wihtout
having to select each individual text box, arrow and line. Is it possible to
select all objects on a worksheet and delete them?
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 206
Default Can I select and delete multiple objects from a worksheet?

On Mar 5, 8:28*pm, "Jim Cone" wrote:
Yes it is...
Edit | Goto | Special (button) | Objects
--
Jim Cone
Portland, Oregon *USA

"Stewart"
wrote in message
I am working in a very large spreadsheet and there are many text boxes and
arrows/line objects on the worksheet. *I want to remove all of these wihtout
having to select each individual text box, arrow and line. *Is it possible to
select all objects on a worksheet and delete them?


use can use a code that will delete all the shapes


Sub Button5_Click()
Dim Sh As Shape
With Worksheets("Sheet1")
For Each Sh In .Shapes
Sh.Delete
Next Sh
End With
End Sub

This next code will delete shapes from a specific range, modified code
found at his site
http://www.mvps.org/dmcritchie/excel/shapes.htm


Sub ClearShapes()
Dim r As Range
Dim myshape As Shape

Set r = Range(Worksheets("Sheet1").Range("B6"), Worksheets
("Sheet1").Range("L17"))

Application.ScreenUpdating = False

r.Select

For Each myshape In ActiveSheet.Shapes

If Intersect(myshape.TopLeftCell, _
Selection) Is Nothing Then
'do nothing
Else
myshape.Delete
End If

Next myshape

Range("B6").Select

End Sub

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Can I select and delete multiple objects from a worksheet?

Thanks that was perfect.



"Jim Cone" wrote:


Yes it is...
Edit | Goto | Special (button) | Objects
--
Jim Cone
Portland, Oregon USA




"Stewart"
wrote in message
I am working in a very large spreadsheet and there are many text boxes and
arrows/line objects on the worksheet. I want to remove all of these wihtout
having to select each individual text box, arrow and line. Is it possible to
select all objects on a worksheet and delete them?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How does one select multiple drawn objects in Excel 2007? JakeA Excel Discussion (Misc queries) 1 March 8th 08 03:58 PM
how to delete multiple autoshape or objects in excel ron Excel Discussion (Misc queries) 4 January 26th 06 11:01 PM
delete multiple autoshapes or objects in excel ron Excel Discussion (Misc queries) 3 January 26th 06 03:01 PM
Select All controls in a worksheet and delete them rova78 Excel Discussion (Misc queries) 1 April 28th 05 11:05 PM
how can I select multiple drawing objects at once ExcelUser Excel Discussion (Misc queries) 1 February 11th 05 10:42 AM


All times are GMT +1. The time now is 08:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"