|Typical error from a Word 2013 or before|
installation when loading a corrupt file
IntroductionThankfully these days, the number of Word files becoming corrupt, may be diminishing and the new since Word 2007 DOCX file format, is tailor made to allow for easier file repair, however a corrupt Word file is still a common experience and it often happens to valuable documents at just the wrong time in their composition. A corrupt file is one that opens but is missing previously written parts of the document or otherwise acting abnormally. They are also documents which no longer open, instead throwing an error message, like the one above, when you try to work with them.
|What the two kinds of fake memory do to data what's they reach capacity.|
Corrupt Word File Recover & Repair Methods
- Find Previous, Lost, Deleted, Temporary and Unsaved Versions of Your File - the idea here is to get a version of your file that if not identical to the last good instance of what you were working on, is at least close to what you need to start reconstructing your lost work.
- Previous Versions
- - this works for the Business, Enterprise, and Ultimate versions of Windows Vista, all versions of Windows 7, Server 2008 and Windows 10. It does not work in Windows 8 and 8.1, except possibly in a hidden way by using the hidden drive path in Explorer: \\localhost\c$. With Windows XP, Server 2003 you won't see a Previous Versions tab either unless your domain administrator has specifically configured your network to set it up. XP Home users apparently don't see the Previous Version tab at all.
- Recovering Previous Versions from the tab in Explorer, requires that System Protection be turned for the disk where the file reside and a System Restore Point has been made. Wikipedia says: "Shadow copies are created automatically once per day, or manually when triggered by the backup utility or installer applications which create a restore point," so only copies made during those processes can be restored.
- System Restore is not configured to be on by default in Windows 8, 8.1 and 10, it has to be turned on manually. Also for earlier versions, the default behavior is for the feature to be only turned on for the operating system drive, not for other partitions or disks.
- (freeware) - again requires that System Protection be turned on and a restore point made. Works with all versions of Windows after XP, may not work with XP except on a network that has the Shadow Copy/System Restore service set up.
- (freeware) - ditto.
- (open source freeware) - my piece of software that focuses on individual files which you browse to and select from the current (non-shadow copy) of the file. A list of the shadow copies of the file are shown and you can select and save the one desired. Also requires that System Protection be turned on and a restore point made and will not work with XP except on a network that has been set up for it.
- Using File History to recover previous versions of files - starting with Windows 8, a new "previous version" system was setup as the Shadow Copy/System Restore feature was perceived by Microsoft to be little used and too much of a drag on resources. File History requires configuration as well with a designation of external or network drive location for the backup copies of the files to reside. After that, every hour, Windows will check if you files from your Libraries, Contacts, Desktop and Favorites (and only these locations) and will make new backup copies if they have.
To restore a file from a Previous version using this system, click on History on the Home tab of Explorer.
|Click on History on the Home Tab of Explorer.|
- Lost Versions
- (freeware) - this program makes a quick index of all the files on your system and then provide a much faster file search interface than Windows provides, although Cortana's search capabilities on Windows 10 might rival it.
|Everything in action.|
- Deleted Versions
- Check your Recycle Bin. Right click on your file and choose Restore.
- (freeware) - find deleted file even after they have been removed from the Recycle Bin or been formatted over. This is because deleted files on the spinning platter drives are not actually erased until the file system needs the space. Instead they are just removed from the file index that Windows keeps.
- (freeware) - also a favorite of many. The interface is not as fancy as Recuva but it works well.
|PhotoRec's recovery filetype configuration dialogue.|
- (freeware) - another oldy but goody in the category of restoring deleted files.
- Temporary (also Unsaved and Lost) Versions
- - use the Find Lost/Temp Versions button of this open source freeware.
|S2 Service Word Recovery Tools main interface.|
- Unsaved Versions
- The default location may be C:\Users\[Your_User_Name]\AppData\Local\Microsoft
\Office\UnsavedFiles or C:\Users\[Your_User_Name]\AppData\Roaming\Microsoft
\Office\UnsavedFiles. You will need to change the extension from ASD to DOC, not DOCX! ASD files are still in the old format DOC files.
- If you need to find unsaved changes to files that have been already saved at least once, the default location may be C:\Users\[Your_User_Name]\AppData\Roaming\Microsoft\Word\. The actual path is stored in the Word Options under the Save region. Again the ASD extension needs to be changed to DOC, not DOCX.
|The AutoRecover file location.|
- - advice that presumably applies to Word 2013, 2016 and 365 as well.
- Lost, Deleted and Unsaved
- Of course, check your Recycle folder on your Desktop and if you find a deleted version of your file that might help you, right click on it and choose Restore. After that the file will reappear in the folder from where it was deleted.
- Advice from Microsoft
- (commercial - Mac only)
- // (commercial)
- (commercial - Mac only)
- (freeware for doc files only)
|PC Inspector File Recovery configuration window where the type of recovery is chosen.|
- (commercial - recommends the umbrella program Office Regenerator which probably works the same. "On my 100GB data partition it ran for about 1 hour and found 691 files, 450 MB, going back almost 7 months! I don’t remember if that was the last time I used a wipe freespace tool on my drive. They definitely were not in my recycle bin. Don’t do first auto run. The interface provides lots of Filter criteria such as: date created range, last saved range, last printed range, title, num pages, editing time, revision number, file type, author. All of the recovered files I looked at were properly structured." - note the other undeleters above may be similarly effective. Try the demos first!)
- /Conventional Advice (most of this section can be accomplished using the open source freeware, )
- If You Can Still Open the File - your file may be corrupt if symptoms appear such as Word: repeatedly renumbering the existing pages in the document, repeatedly rearranging the page breaks in the document, providing incorrect document layout and formatting, showing unreadable characters on the screen, displaying error messages during processing, causing the computer to hang when the document is loaded or any other unexpected behavior that cannot be attributed to the typical operation of the program. Note that it could also be that Microsoft Word itself or the entire Microsoft Office suite may need repairing or reinstalling. See here regarding steps on how to do this.
- Make a few copies of your corrupt document and only work on the copies! Some these procedure will possibly destroy or make your file worse :-(.
- by holding down the CTL key as you click to start Word. View and save the file if it opens without error.
- Start Word without loading macros by holding down the Shift key while starting Word. in the Run command, Command Prompt or the Search/Cortana field of Windows. Afterwords, try loading your document and see if it loads without corruption. If it does then you need to try to disable all macros you have in your template that start when Word starts and then re-enable them one at a time until you find the one that is causing the issue.
- that you are using by renaming either the global template (Normal.dotm) if you using that, or find the one you are using and renaming that one.
|My Word Normal.dotm template and its location (with my user name blurred out).|
- Start Word without it loading add-ins or the normal template by: starting it from a Command Prompt, the Run Box, or the Cortana/Search field and using the command: winword.exe /a. If your file opens normally without corruption, then there is an Add-in causing the trouble. In Word, go to File then Options and then Add-ins. In the panel windows that opens, look for which kind of Add-ins are active and then go to the bottom and choose to manage those types of Add-ins. Uncheck the running Add-ins one by one or all at once if you think you don't need them and then try reopening your file.
|The Winword.exe /a command typed into the
Windows 10 Start Menu Search/Cortana field.
- Change the print driver by adding another printer like another instance of the Microsoft XPS Document Writer, printing from that, verifying it worked, deleting the original printer, reinstalling it and then trying the first printer again.
- Force Word to repair the file by starting an open dialog window in Word, selecting your file in the Explorer tree, and choosing Open and Repair by clicking on the tiny arrow to the right of the word Open on the open button and choosing the command from the drop down menu.
|Where to find the Open and Repair function in Word.|
- Change the file format using File menu, choosing Save As and select a different format: DOC, RTF, ODT, etc. Then open the new file name and use Save As to return to DOCX format.
- I'm not sure if this applies to Word 2007 and more recent versions, but it has been said by Word MVPs that formatting and corruption is usually stored in section breaks, but can also be stored in any paragraph mark particularly the last paragraph mark of a document because it contains a hidden section break. Corruption can also be found in end of row marks for tables and bookmarks (usually only if you have been using EndNote). To bypass these sources of corruption, find where the document begins to corrupt and then switch to Draft view and try deleting the previous section mark or the following one. If you don't know where the corruption is, try removing all the section breaks and continuing with the advice below about copying the text without the last paragraph mark. If you have no section breaks in your document you can turn on the formatting marks and then copying everything but the last paragraph mark to a new document. Start on the last character before the last paragraph mark and hit Ctl-Shift and Home keys on your keyboard to select all the text before the last paragraph mark. Hit Ctl-C on your keyboard to copy all the text and then paste it into a new blank document (you can get that by hitting Ctl-N).
- If you text is not appearing after a certain point in your document, note the page number then switch to Web or Draft view. In this view, if you can now see paragraphs beyond the ones that appear in your Print view, just after where the truncation appears, delete the next paragraph table or object (maybe even an equation) in the new view. Switch now to Print Layout view and see if the truncation of the document below the presumably bad element, has gone away. If it has not, continue to switch to Draft or Web view and delete more further paragraphs or objects.
- and advice is to group offending elements togethor. Per Roh007's reply to a post of mine: "If you can open a file and you have a lot of objects of one kind that you suspect are causing corruption you can group them togethor to possible stop future corruption from occurring. Grouping objects by first turning on the Selection pane. This can be found on the far right of the Home tab of the ribbon. The editing group of the Home tab has a dropdown button named Select. Click the Select button, and then click Selection Pane...Press the Ctrl button on your keyboard and then click each text box (or other object?) in the selection pane. Click the Group button under the Format tab. This will group all the objects together. As soon as you have all objects grouped on each page, save the document under a new name."
|The Home Tab With Selection Menu and Section Pane Indicated|
- If You Can No Longer Open the File - Make a few copies of your corrupt document and only work on the copies! Some these procedure will possibly destroy or make your file worse :-(.
- Repair the zip structure of the DOCX file if you are working with that kind of format document (and not the older DOC one). DOCX files are in reality conventionally zipped collections of mostly XML sub-files.Repairing the zip structure is sometimes all Word needs to stop throwing errors and open the file. You can repair the zip structure with the repair feature of some freeware zip suites like iZarc, or with the Repair feature of Corrupt Extractor for Microsoft Office, which I contracted to be custommed programmed for me. The program also sometimes recovers the text from corrupt DOCX files, as well as the media, such as images and inserted Excel spreadsheets.
- by holding down the Ctl key as you click to start Word. View and save the file if it opens.
|The Add-in "tab" of the File -> Options window.|
- Start Word without it loading add-ins or the normal template by: starting it from a Command Prompt, the Run box, or the Cortana/ Search field and using the command: winword.exe /a. If your file opens, then there is an Add-in causing the trouble. Go to File then Options and then Add-ins. In the panel windows that opens, look for which kind of Add-ins are active and then go to the bottom and choose to manage those types of Add-ins. Uncheck the running Add-ins one by one or all at once if you think you don't need them and try reopening your file.
- Start Word without loading macros by holding down the Shift key while starting Word. in the Command Prompt, the Run box, or the Cortana/ Search field of Windows. Afterwords, try loading your document.
- Check to see if you have any other copies of your file. Have you Emailed it recently? If so check your sent folder. Have you deleted a version? Check the Recycle Bin or use , , , mentioned earlier or use another technique to find a previous, lost, temporary or unsaved version of your file with the software mentioned above or using the techniques mentioned in the Advice section at the end of the article.
- Open with Microsoft Word's in-built method Open and Repair by choosing the File menu, then Open, then Select file, then clicking the down arrow beside the open button and choosing Open and Repair. See above for an image.
- Try changing the extension to DOC if a DOCX file or vice versa.
- Also look at the raw characters of a copy of your corrupt file in NotePad, NotePad++, WordPad or Word (for the latter two programs, change the extension to txt) that a lot of instances of the characters "PK" indicate a DOCX file and those two characters start the raw character parade of a normal zip file as well as a DOCX one. The characters "ÐÏ" normally start a DOC file and towards the end there are normally a few zipped up sub-files (as indicated by section starting with "PK" again) even in the DOC file format.
|The raw characters at the beginning of DOC file as displayed in NotePad++.|
- Try opening the file in Draft view without updating the links by first switching the view to Draft on a blank document. Next open the Options and choose Advanced and click with the left mouse button to put checkmarks next to "Use Draft font in Draft and Outline Views" and "Show picture placeholders" instead of the images in the file. Also continuing in the Advanced Options scroll down to the General section of the window and uncheck the Update automatic links at open option. Now try to open the file. If it opens, repair it by looking for the truncations in Print Layout and removing objects from Draft or Web view just after the truncations as mentioned before.
|Checks to Show Picture Placeholders and to use Draft fonts in Draft and Outline views.|
- Insert the text into a new file by first choosing to an insert an Object, then on the window that opens choose the Create from File tab and browse to your corrupt file.
|How to insert a text from a file by choosing to Insert an Object and the Create from a file tab.|
- Create a link to the damaged document by opening a blank document and typing something like "This is test." Save the new file with the name "Rescue link." Copy the text. Create a second new document. In the new file, choose Paste Special (by clicking on the tiny arrow underneath the Paste button on the Home Menu) and then move the radio button on the left of the Paste Special window to Paste link and choose Formatted Text RTF. Now select the linked text, right click on it, choose first Linked Document Object and then Links. Find your new linked document in the list, and choose Change Source and change the source to your damaged document. See if any text or other recoverable elements appear. Finally right click on the recovered text and/or objects, choose Linked Document Object again choose Links again. This time choose Break Links...This may only work if your corrupt document is a DOC one and not DOCX format.
|The Link Document Object -> Links window, with the a File Open dialog box choosing the corrupted file to link to.|
- Use the Recover Text from Any File function of Word by browsing to your corrupt file, and then selecting the little down arrow on the button above the Open and Cancel buttons on the lower right corner of the Open dialog box and choosing, Recover Text from Any File...This again may only work with DOC files.
|The Recover Text from Any File choice chosen in a Word File Open dialog box.|
- Open the file in or some other viewer. If the viewer doesn't have the ability to convert to another format, you can try to select the whole document by hitting Ctl-A on your keyboard and then Ctl-C to copy the text (and possibly formatting too) to your clipboard. From there you can paste it into a new blank Word document.
- Another way to do things is to take screenshots of the results in the viewer and then do OCR, for example using one of , and then paste the results of the text for each page image into a new Word file. This may of course be very labor intensive. Another easier alternative in this situation is to first print from the viewer to a PDF Printer like , which saves the document as a PDF file. At this point you can open the file in Adobe Reader and then on the File menu of the program, choosing first Save As Other and then Text. Of course if you have Adobe Acrobat Standard or Professional, the Export To menu choice will also let you convert directly back to a Word document. There are also a few pieces of freeware and free services which claim they can convert PDF's directly back to Word documents. The quality varies though and at least in the past you could end up with each line of your document being an independent text box, which obviously makes editing a nightmare. In the most recent version of Adobe Acrobat DC, the new incarnation Adobe Acrobat Professional, the Word conversion text flow problems, appear to be gone or greatly lessened.
- Try to convert the text using a text/data extracting/converter service like: , , , , and others.
- and if possible a different version of Word.
- in your Control Panel applet called Programs and Features. After repairing the install, try opening the file again.
- . First open an elevated command prompt. To do this, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator. If you are prompted for an administrator password or for a confirmation, type the password, or click Allow. Type the following: regsvr32 %SystemRoot%\system32\ole32.dll and then click OK. When you receive the message "DllRegisterServer in ole32.dll succeeded.", click OK, and try opening your file again.
- Quit Word, then restart it and try opening your file. NOTE: Use this switch when you want Microsoft Word to rewrite all of its registry keys and reassociate itself with Word files, such as documents and templates.
- . Next click on the Trusted Center Settings and then Protect View. From there, uncheck the three kinds of Enable Protected View. Save and try to reopen your file. You may need to repair the install of Word or Office first before this works.
|The Protected View section of the Trust Center section of the File -> Option menu. |
The arrows point to where to uncheck Enable Protected View from various data origins.
- Try to Open the File in Another Word Processor (which is hopefully less picky about format than Word).
- Stand Alone Word Processors
WordPad - can be started by typing "wordpad" without the quotes at a Command Prompt, the Run box or the Cortana/Search box. It also can be started by opening Explorer and pasting "%WINDIR%\write.exe" into the address bar without the quotes. The %WINDIR%\write.exe command will also work in the Command Prompt, the Run box or the Cortana/Search box. WordPad is also in the Windows Accessories folder of the Start Menu.
WordPad is a very effective opener of corrupt DOCX (but not DOC) files and is installed by default in Windows. It is particularly effective if you have you pretreat the DOCX files with a zip repair program. Simply repairing the zip corruption is often enough to get it to open in WordPad (or even Word!). , , and all have zip repair facilities and are freeware or open source freeware.
|A sample DOCX file open in WordPad.|
- Opening a copy of the file is really the first step that should be done when trying to repair or recover it. You can also try viewing a copy of the file in Windows Notepad, or the free or even changing the extension of the copy of your file to TXT and trying to open the file in WordPad or Word. This will for instance, tell you if there are any characters in the file at all or if they are all the NUL or completely blank (filled with the space character). If the file is made up of blank spaces or filled with the NUL character, nothing can be done with the document because there is no content. Instead you need to find an earlier, lost, temporary, deleted or unsaved version of your file to look at. NOTE: it is very important to not open the original file in NotePad as it changes the structure of the file, itself causing corruption. NotePad++ doesn't have the problem. Note too, as mentioned, you can look for the characters "PK" in DOCX files as they indicate that the file has recoverable zip structure. Each subfile in a zip file is itself zipped up in a separate package and each of those packages starts with the characters "PK". If you change the extension to TXT and open it in WordPad or Word, it may also corrupt the DOCX or DOC structure, so be sure to only use a copy of your baby. DOC files normally start with the characters "ÐÏ" without the quotes. They also normally have a few zipped up sub-files at the end of the file. However they do not have the all important document.xml sub-file where all the text is stored in a DOCX file.
A screenshot of raw characters again in
NotePad++, but this time of a
DOCX file. Additionally
it shows green highlighting of where the Zip sub-file indicating characters "PK" exist.
- (open source freeware)
|AbiWord with document loaded.|
- (just for DOC files)
- Free Office Suites With Word Processors
- (open source freeware)
- (open source freeware)
|SoftMaker FreeOffice 2016 TextMaker with a loaded sample document.|
- Online Word Processors and Office Suites
|Zoho Office Writer with a loaded sample document.|
- Corrupt Word Document Repair Software
- Corrupt File Text Recovery (Freeware and Open Source Freeware)
- - a GUI text extractor useful mainly for DOC files (freeware).
Screenshot of BinText extracting text from the a
Word DOC file|
made from the content found on the McAfee BinText web page.
- - command line version * Corrupt Extractor for Microsoft Office - see below (freeware)
- - a simple gui DOCX file only text extractor (open source freeware).
- - a gui text and image extractor for DOCX, XLSX and PPTX files. It also has a zip repair function built in (open source freeware).
- - another simple GUI for opening Microsoft Office files including Word. Is very similar to Corrupt DOCX Salvager (open source freeware).
- - command line DOC only reader of even corrupt files (open source freeware).
- - A gui DOC file only text extractor (freeware).
- excellent command line app which Works for DOC and DOCX as well as ODT Open Office format files (open source freeware).
- - command line utility for extracting text from DOCX files. I believe it has a different algorithm than DocToText (open source freeware).
- Corrupt File Repair With Formatting (Freeware and Open Source Freeware) - Read about tag mismatch reordering and about unspecified errors.
- (open source freeware for extracting text and sometimes fixing Open Office files).
- (freeware tag reorderer - see the video below)
- (the first link is for the paper describing it. It's actually downloaded from: - this freeware supposedly fixes corrupt DOC files but not very often, however it is an interesting concept).
Screenshot of Microsoft Office Visualization Tool with a file loaded
and parsed and showing the Repair and Defragment menu choice.
- (open source freeware)
- (open source freeware)
|Savvy DOCX Recovery in the middle of processing a file.|
- (freeware DOCX file tag reorderer)
- (open source freeware DOCX file tag reorderer) - very nice!
- Commercial Software (Don't pay for software before trying the demos first!!)
- (commercial) - recommended!
Easy Office Recovery,
a favorite of mine, showing successfully recovered DOCX and DOC files.
It has the capacity to do bulk recoveries and works very quickly. It recovers text and formatting.
- Kernel for Word (commercial software that apparently Microsoft doesn't trust at the moment, so Windows won't let me install it)
|R-Word demo with a loaded folder containing Word files.|
- - industry standard tool for recovering from disk errors which might be causing file corruption (commercial)
- (my favorite commercial app as I have an affiliate relationship with them and they have paid me a percentage of sales starting from links in my websites. I guess it works pretty well too from the volume of sales I see.)
|WordFix in the midst of recovery.|
- Patches to Prevent Word from Causing Corruption In the Future
- - Fixes Word 2000 Eastern European Font Error Text Character Corruption.
- (and SP1 for that matter) for Office 2010 fixes the issue of "The end tag does not match the start tag" error for Word.
- for fixing "unspecified errors" occurring after installation of security update MS08-072 (you must have Office SP1 or SP2 installed).
- for corruption (probably "unspecified errors" again) caused when editing math formula.
- Corrupt Word Document Repair Services
- Free Services
- 3ice's Online Manual Unspecified Error recoveries (and discussions on how to reorder DOCX document.xml subfile tags to get the files to open).
- Jeeped and Doug Robbin's free DOCX XML sub-file repairs (and discussions on how to reorder DOCX document.xml subfile tags to get the files to open).
- (free after 14 days)
OfficeRecovery Online's web page. The service
offers free recovery if you are willing to wait 14 days.
- Paid Services
- ($9.95 for recovery of 10 files over 3 days.)
From the makers of
and is certainly
easy and economical if you have only a few files to recover.
- ($39 for instant access, free after 14 days also has volume discounts)
- ($5 plus $1 for every 50 MB over 100 MB)
Online File Repair Service may offer the most
inexpensive commercial recovery available.
- ($5 for manual analysis, $17 for successful manual recovery)
- Recovery and Repair Advice
- A great post by Rohn007 on reordering math tags in Word 2007 (without SP3) and Word 2010 (without SP1).
- A primer on the structure of DOC and DOCX files and how they become corrupt.
- EndNote associated Word corruption and how to recover from it.
- Easy to follow guide how to unzip a corrupt DOCX, take the document.xml file from a corrupt DOCX and paste it into a blank file's zip structure and recover the text if not some of the formatting.
- Famous article of legacy advice on corruption in older versions of Word, from I believe two Microsoft Word MVP's.
- Fixing an unspecified error by opening the file in Word online, removing the table of contents and then saving and re-opening in the desktop version of Word.
- Fixing persistent template corruption...
- Fixing "Word cannot start the converter mswrd632" error. This is probably a legacy issue. The link is to a Microsoft article with a Fixit app that apparently changes the registry to fix this issue.
- Instructions for manually fixing malformed xml from the word/document.xml sub-file in the DOCX.
- Microsoft article on how to recover previous and unsaved versions of Office files, including Word ones.
- Microsoft's troubleshooting advice for Word files that you can still open and those you can't.
- Ways to fix out of order math tags when encountering a "The name in the end tag of the element must match the element type in the start tag" error.
- WikiHow's advice about how to search for previous versions, lost, temporary, deleted, unsaved copies of your file, with nice pictures.
- WikiHow's advice about repairing corrupt Word files, with more nice pictures.
- Prevention Advice
- Using Windows 8, 8.1 and 10's File History File Version Backups to a Removable Drive.
- Setting Up and Using Windows 7 Previous Version file system.
- From this : Track changes can be buggy. Avoid if possible. Don't apply direct formatting, instead use paragraph styles to make all formatting changes. Don't use drag and drop if you can avoid it. Make sure auto-recovery is turned on and set for at least every 10 minutes. Avoid DOC files, using DOCX ones instead.
- From this article regarding avoiding corruption in Word for Mac: Keep Microsoft Office up to date. As above never use Track Changes, use Compare Documents instead as it does not corrupt files. Don't use direct formatting; instead use styles to apply it. Don't use Drag and Drop, use Copy and Paste instead. Use DOCX format files instead of DOC. According to the author DOC files are fragile, while DOCX are not.
- More Rohn007 advice: Use AutoHistory for app that saves a new file with a date stamp in a separate folder for each named file. The new files are created at the time of each save. Some Word (for example is an add-in saving the working file in two places every time) recommended by Rohn007.
- that makes a backup copy of Word files to another drive.
- Video Tutorials
(Corrupt office2txt is very similar to Corrupt DOCX Salvager.)
View options. To do this, open a new blank document in Word, go to Options, click
on Trust Center, clicking on the Trusted Center Settings and then Protect View, from
there the video maker, unchecks the three kinds of Enable Protected View. He/She
saves the configuration and successfully reopens the file. As is done in the video you may
need to first repair the install of Microsoft Office or Word. https://notepad-plus-plus.org/