Excel files have objects that can not be deleted

AijaV

New Member
Joined
Jan 14, 2019
Messages
7
Hi!
I would appreciate if someone could help me with excel files.
In some of them I have images, in others-text boxes, that can not be deleted, selected or moved to other place.

Accessibility checker shows error with Alt text

Check for issues result - invisible content inspection not successful

Tried to use Excel 2016 Pro, Excel 2013. I can not delete objects with that error in any of available for me MS Windows versions.

I've also tried this:

  • Web page preview. Inspect. Result
image002.png

VBA code 1
Sub count()
Dim i As Integer
i = ActiveSheet.Shapes.Count
MsgBox i
End Sub

Result. If that’s the only object in sheet I get result “1”


VBA code 2
Sub DeleteAllShapes()
Dim Shp As Shape
For Each Shp In ActiveSheet.Shapes
Shp.Delete
Next Shp
End Sub


Result. Run time error warning



When I use VBA code (ActiveSheet.Shapes.Creator) to find out creator, the result is


1480803660
The Excel for Macintosh creator code.

How could I solve this problem? I have a lot of files, obviously that has been created or at some point used on Macintosh device, but now I have problems with them on Windows devices to use some add-ins because of this error. Is there any repair option that could be applied to files to delete those objects?

Thank you in advance!
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Just an idea but backup first,
Rename your file extension to .zip
Extract contents and delete objects manually
Re-zip and change extension back.
 
Upvote 0
Additional info to my question because of the mistakes in my text that I see after posting

1. Result of web page preview of one excel file object was [FONT=&quot]img width="421" height="866" src="image002.png" v:shapes="Object_x0020_1"
[/FONT]
2. VBA code counted 1 object when that was the only object on the sheet[FONT=&quot]
[/FONT]
 
Upvote 0
Here is list of the extracted files
[FONT=&quot][/FONT][FONT=&quot][/FONT]
where I can find and delete objects.
never dones something like this before
 
Upvote 0
Post a link to this file, shared on dropbox, google drive , one drive or any similar server
 
Upvote 0
I've used this as solution for now

Selected all tabs in workbook and with Move or Copy copied to new workbook. This action moves all data and formats and the good thing that it does not move these objects with errors. But I wanted to know maybe there is a better way.
 
Upvote 0
select column A and B
Delete these columns

or

change extension to .zip
open zip
from xl folder delete Drawings folder
close
change extension to xlsx
open
accept recover/repair
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,807
Messages
6,132,812
Members
449,760
Latest member
letonuslepus

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