The information in this article applies to:
SUMMARYThis article describes how you can close a running instance of Microsoft Word using the SendMessage Application Program Interface (API). MORE INFORMATION
The following code terminates an instance of Word 97 or Word 2000, even if the current document has been changed. Note that you will not be prompted to save changes. Terminating a running Windows application in this manner is considered bad programming style, however, this method can be effective if you need to quickly close Word.
REFERENCES(c) Microsoft Corporation 1999, All Rights Reserved. Contributions by Dean Christopher, Microsoft Corporation. Additional query words: kbDSE
Keywords : kbAPI kbAutomation kbVFp500a kbVFp600 kbVS600sp3 kbGrpFox kbCodeSnippet |
Last Reviewed: December 7, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |