How to select and delete special objects?

seanxx

New Member
Joined
Apr 11, 2018
Messages
17
Office Version
  1. 2019
Platform
  1. Windows
my workbook found 7200 objects and I need to delete them all except 2 objects.
I don't know how to mark them and where is the option to DELETE objects.
How to mark / unmark objects for deletion.
How should I proceed, please?

thank you
 

Attachments

  • delete.png
    delete.png
    51.4 KB · Views: 24

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
After selecting all, press the control key and uncheck one object with the left mouse button, repeat the same for the other object, then press the delete key to delete the other selected objects.
 
Upvote 1
After selecting all, press the control key and uncheck one object with the left mouse button, repeat the same for the other object, then press the delete key to delete the other selected objects.
HOW SHOULD I SELECT ALL THE OBJECTS, PLEASE?
ctr+a?
 
Upvote 0
HOW SHOULD I SELECT ALL THE OBJECTS, PLEASE?
Didn't you already have them all selected when you created the image in post 1? How did you do that?
Was it F5 -> Special .. -> Objects -> OK?
 
Upvote 0
yes

All selected objects are displayed in your image.

Other way to select:

On the Home tab, in the Editing group, click Find & Select and do one of the following:

Find & Select in the Editing group on the Home tab


  • To select objects click Select Objects, and then draw a box over the objects.
  • Exclude the 2 objects you do not want to select from the box.

Example:

1712410380137.png


After selecting them with the mouse and releasing the left mouse button:


1712410502906.png


Now just prese delete key.
 
Last edited:
Upvote 1
Solution
After selecting all, press the control key and uncheck one object with the left mouse button, repeat the same for the other object, then press the delete key to delete the other selected objects.
Thanks for the explanation, you helped me.
It's okay now.
Excel took a very long time to respond when I unchecked
2 objects out of 7200 (to be deleted)
 
Upvote 0
Didn't you already have them all selected when you created the image in post 1? How did you do that?
Was it F5 -> Special .. -> Objects -> OK?
Yes, I chose them
but everything is fine now, it took longer.

thank you
 
Upvote 0
Possibly for future use if you forgot how to use the other better suggestions.
Code:
Sub Delete_All_Except_Two()
Dim shp As Shape
    For Each shp In ActiveSheet.Shapes
        Select Case shp.Name
            Case "Button 1", "TextBox 2"    '<---- Names of shapes not to be deleted
                Case Else
            shp.Delete
        End Select
    Next shp
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top