Can't edit a specific document in Word 2007
Copied from Unprotect a Word Document so please vote him up over there.
One possible solution. I think there are others as well.
- Open a protected document in MS Word
- Save as "Web Page (*.htm; *.html)", close Word
- Open html-document in any Text-Editor
- Search
<w:UnprotectPassword>
tag, the line reads something like that:<w:UnprotectPassword>ABCDEF01</w:UnprotectPassword>
(password is already in hex-format)- Keep the "password" in mind
- Open original document (.doc) with any hex-editor
- Search for hex-values of the password, which is stored in reverse order. (e.g. If password is 0xAB 0xCD 0xEF 0x01. Then the password is in the .doc file as 0x01 0xEF 0xCD 0xAB)
- Overwrite all 4 double-bytes with 0x00, Save, Close
- Open document with MS Word, Select "Tools / Unprotect Document" (password is blank)
Is the file "protected"? If so, go into the protect/unprotect section and unprotect the file. Then you should be able to edit any part.
If you have the developer tab enabled, there is a quick section in there to change the restrictions or protections.
To enable developer tab: Go to the big main Word menu (the big bubble in upper left), click the "Word Options" at the bottom, the default page will be the "popular" options, check the "Show Developer tab in the Ribbon".
This solution works if you can open the file but are prevented from editing or overcoming the preset form fields in a *.docx Word Document.
To unprotect a Word *.docx document that has been protected for forms or editing:
Make a copy of the file and rename it to have a .zip extension (mydoc.docx.zip).
Extract the contents of the new ZIP file to an empty folder (e.g. "My Documents\newdoc").
Locate the file "My Documents\newdoc\word\settings.xml" and open it in Notepad or your favorite text editor.
Find and delete the XML tag beginning with
<w:documentProtection
and ending with the next occurence of>
.Also, check the beginning characters of this file. The first line MUST begin with the following:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
There must be no additional characters or spaces in front of it, nor a blank line above it. Some text editors will add characters or extra lines to some XML files, depending on character encoding. Delete any extra lines or characters at the beginning of the file.
Save the settings.xml file.
Here's the tricky part - put the files back into a new ZIP file, making sure to include the associated directory structure. You'll be zipping the contents of the new directory (\newdoc) into a new ZIP file (unprot.zip).
Rename the new ZIP file to a .docx extension (unprot.zip.docx).
Open the new, unprotected .docx with Word.