Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Corrupt File" #$@?$#$%^$# 2

Status
Not open for further replies.

multipleintell

Technical User
Dec 7, 2001
72
US
I am having problems with a MS Word Document. After working for hours creating a 78 page document with a table on every page, using macros to ease a delete table step, my darn document came up with "Corrupt File" message. What, if anything can I do? If I have to start over, I will cry. I already tried copying everything and pasting into a new document..."Corrupt File"

Thank you,
I appreciate any advice you might give on this topic.
Melissa
 
Does the message say something like "This document may be corrupt. To preserve the contents, select all, create a new document, choose paste..."

If yes, then it is possible that the document is not corrupted but that the ListTemplate count has exceeded a count of 2000.

You can determine this by clicking (with the document opem) TOOLS - MACRO - VISUAL BASIC EDITOR. Select VIEW - IMMEDIATE WINDOW (if not already displayed) and type in this command in the window

?activedocument.listtemplates.count

Hit enter and see if the count is over 2000

If this is the case I can adivse where to go from here otherwise I'll just end up typing for the wrong issue.

 
Small correction if the count is over 1500 and not 2000.
 
The other thing you could take a look at is an FAQ written by Dreamboat: faq68-580
 
Thank you for your help, joegz. I followed your directions and found that my ListTemplate count is 2033. What would you advise me to do next? Your reply is giving me a glimmer of hope! Thank you so much. s-)
 
Not wishing to steal joegz's thunder:

You have to modify the Windows Registry. To do this:

1. On the Windows Start menu, click Run .

2. In the Open box, type Regedit and click OK .

3. Select the following key in the Windows registry:

HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Options

4. On the Edit menu, click New , click DWord Value , and then add the following registry value:

Value Name: LTOverflowRecovery
Value: 1

5. On the Registry menu, click Exit .

That should solve it. If you don't want to go through this process, then if you are running Office 2000, you can install SR1/1a. Take a look at this link to get a copy of it:

 
Microsoft has put out a fix for this for Word 97 and Word 2000. I'll refer to the article numbers at the bottom. This may be your easiest solution. There is also an article about modifying a registry entry which may help. (Although I will mention we tried modifying the registry entry and it did not help when we ran across the issue, but that doesn't mean it may not work for you.)

The only problem with this is that if you are going to give this document to others more than likely they are going to encounter the same corruption message (though your document is not really corrupted) unless they take the update as well. Because of this, in our situation we had to address the issue at the document level rather than the PC level.

The root of the issue is that there is bad code in your document that makes the ListTemplate count go up above 1500. If you do a SELECT ALL and paste the information to a new document you just end up also copying the bad code with you and does nothing to alleviate the issue.

You can correct the error by doing a COPY and PASTE function to a new document but what you copy needs to be only the text and tables of the document. Don't copy over items such as the TOC, Section breaks, Page breaks, etc... This is where the ListTemplate code is going to be and if you just take one of them with you it will mess up the new document.

It sounds like a pain and it is as I recently had to do this for a 400+ page document for a client but it was better than redoing the whole thing. After pasting each section in I ran the VB command to check the count to make sure I did not pick up the code. If not, I saved and went to the next section. If I did and exceeded the 1500 limit, I backed it out and copied a smaller section in and rechecked.

Best of luck and I hope one of these solutions makes it easy for you. Well at least easier than rewriting the document.

Microsoft Article:
Word 97

Word 2000
"Find out what it is not first to better determine what it is."
 
Joegz and Hasit,

Thanks guys, you really saved me. I am working with a committee of educators to redesign (and type in a readable format) the entire K-12 grade Language Arts Curriculum guide so that it is aligned with the standards set by the state. It is a huge task and each document is ending up being about 70-100 pages with a table on each page. I thought I had lost hours of work and now with your advice, I got my document back :-V. Thank you again!

Have a Festive Holiday Season
Melissa
 
Hey thanks! Its worth providing stars to people who have helped so that others can see that there is a good/neat/quick solution to the problem.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top