Cannot shift items

Giordano Bruno

Well-known Member
Joined
Jan 7, 2007
Messages
1,356
I have a worksheet and wish to hide the rows below the last used row. When I select all rows to the last row (52:1048576)and try to hide them, I get the illogical message "Can't push objects off the sheet".
I have searched for objects and there are none on the sheet. I'm using Excel 365. Has anyone else come across this problem?
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi,

Test:
Code:
<code class=" language-vb" style="box-sizing: border-box; font-family: inherit; font-size: 1em; position: relative; white-space: inherit;">[COLOR=#770088]Sub[/COLOR] DeleteAllShapes()
[COLOR=#AA5500]'Note: Remove All Shape Objects From The Active Worksheet[/COLOR]
    [COLOR=#770088]Dim[/COLOR] Info [COLOR=#770088]As[/COLOR] [COLOR=#770088]Long[/COLOR]
    [COLOR=#770088]Dim[/COLOR] shp [COLOR=#770088]As[/COLOR] Shape
    Info = MsgBox([COLOR=#AA1111]"  Total n° "[/COLOR] & ActiveSheet.Shapes.Count & [COLOR=#AA1111]" [/COLOR][COLOR=#AA5500]Objects [/COLOR][COLOR=#AA1111]"[/COLOR] & Chr([COLOR=#116644]13[/COLOR]) & _
    [COLOR=#AA1111]"[/COLOR]You want to delete them from this sheet [COLOR=#AA1111]?"[/COLOR], vbInformation + vbOKCancel, [COLOR=#AA1111]"Remove"[/COLOR])
    [COLOR=#770088]If[/COLOR] Info = [COLOR=#116644]1[/COLOR] [COLOR=#770088]Then[/COLOR]
        [COLOR=#770088]For[/COLOR] [COLOR=#770088]Each[/COLOR] shp [COLOR=#770088]In[/COLOR] ActiveSheet.Shapes
           shp.Delete
        [COLOR=#770088]Next[/COLOR] shp
    [COLOR=#770088]End[/COLOR] [COLOR=#770088]If[/COLOR]
[COLOR=#770088]End[/COLOR] [COLOR=#770088]Sub[/COLOR]</code>
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

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