dociment not saved

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear All,
Can anybody give reason for this , i,m one user who is having full access of
one shared file, but whenever i try to save that file it is giving error ,
document not saved, it is not happening with others file
 
I just encountered this tonight - the "document not saved" message.

Even after moving most of the sheets to a new workbook, that file also
would not save.

Then I found a cell linking to another workbook file that did not
exist, and after deleting that cell formula the file would save.

So check Edit/Links and make sure you don't have any links to other
files that excel says cannot be updated. Maybe you'll get lucky and
this will solve your problem.

I hope this helps,

Brian Murphy
Austin, Texas
 
False alarm. That didn't fix the problem like I thought. I still
don't know what's causing it.

Brian
 
Okay, I think I figure it out. At least for my particular case.

The message "document not saved" was being triggered by a VBA code
module of a worksheet that contained lines of code that were too long
to fit on one line (>1024 characters). These lines of code were being
put there by a macro, and of course the VBA editor doesn't like them.
Deleting the suspect lines of code immediately resulted in the file
being able to be saved.

I found this behavior to be 100% repeatable.

You can test this yourself by:
1. Start with a blank workbook
2. Right click on a sheet tab and select View Code
3. Paste in the lines shown below (the long one is about 1100
characters)
4. Try to save the workbook file.

I think the main point here is that Excel didn't like something in the
file, and so it would not save it. So I would expect other things can
produce the same symptom.

Brian Murphy
Austin, Texas


Sub test()
msgbox_"123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789_"
End Sub
 
Back
Top