"Errors were detected while saving ******.xlsm"

Geshwinn

New Member
Joined
Nov 4, 2010
Messages
24
Hi guys,

I keep getting this message for a file I am working on and basically cannot save it. I am using excel 2010.

After I click continue it tries to save everything to a new file and gives me the error that the damage was too extensive and cannot save it.

Yesterday I lost more than 150 lines of VBA code. Today I am trying with less (just 4 For... next loops) and still doesn't work.

Can you help?
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
I found what caused the problem but I don't know why.
It turned out that it was not the VBA code but the data I paste in one of the sheets.

When I paste it like it is - with source formatting I cannot save the file.
If I paste the values only it works like a charm.

I think I need an exorcist...
 
Upvote 0
I am having this problem. I have graphics that I am copying from another File into the one that I can't save. If I delete all the graphics I can save. But How can I paste so I can save. Here is the code I am using:
Code:
Dim DrObj
Dim Pict


                            For Each Pict In DrObj
                               If Pict.Name = "Picture " & PictureCounter Then
                                    Pict.Select
                                    Application.ScreenUpdating = True
                                    Pict.Copy
                                    
                                    Exit For
                                End If
                            Next

...then later
                            ActiveSheet.Paste
 
Upvote 0

Forum statistics

Threads
1,224,598
Messages
6,179,820
Members
452,946
Latest member
JoseDavid

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