WebOct 9, 2024 · It's the line of code wdocSource.Close SaveChanges:=wdDoNotSaveChanges that did not function. The code stops running awaiting a manual input to the save/don't save dialogue box before the code then completes its run. It seems to ignore the code that is supposed to close the word document down without saving. Any help would be … WebMar 31, 2008 · Listing 3.2. A Macro That Closes a Document Without Saving Changes. Sub CloseWithoutSaving () ActiveDocument.Close …
Closing a Word document without saving - Excel VBA / Macros
WebMay 21, 2013 · Is there anyway to close the last open document in Word 2010 without exiting the Word application? It was always possible in 2003 but not in 2007 & 2010. File -> Close You can also add this to your QAT. Peter 10 people found this reply helpful · Was this reply helpful? Yes No JO Johasia Replied on August 14, 2010 Report abuse WebJan 27, 2024 · Under File>Options>Save, do you have a check mark in the box for"Keep the last AutoRecovered version if I close without saving"? If you do, then following Stefan's advice, or going to File>Info>Manage Document>Recover Unsaved Files may save your bacon. Hope this helps, Doug Robbins - MVP Office Apps & Services (Word) … christopher king lawyer
How to Recover Unsaved Word Document by …
WebApr 5, 2013 · If you only have 1 word process open just close it by running a script. TASKKILL /F /IM "WINWORD.EXE". To run a script from vba use. Application.Run "YourPath". I know it's not much but at least it should take care of your immediate problem. After some asking around a friend told me this could possibly work. WebNov 21, 2014 · It appears that the Word application is terminated when the user closes the last document: If the user clicks the Open button, selects a document, closes the document, clicks the Open button and selects a document a second time, a COMException occurs with the message The RPC server is unavailable. If there is at … WebJul 6, 2014 · My code opens a word document, prints save document based in cages values, then closes without saving the "docx" file. Also, it not creator a newer word objective if there's one instace of word runing, avoidind problems with ".dot" already opened, etc. In today’s articles, we want to share you 2 lanes of how to swift save or … christopher king massachusetts