ACC: How to Open and Close Word Documents with OLE AutomationLast reviewed: August 28, 1997Article ID: Q154456 |
The information in this article applies to:
SUMMARYAdvanced: Requires expert coding, interoperability, and multiuser skills. This Article demonstrates how to use OLE Automation to Open and Close Microsoft Word for Windows 95 documents. This article assumes that you are familiar with Visual Basic for Applications and with creating Microsoft Access applications using the programming tools provided with Microsoft Access. For more information about Visual Basic for Applications, please refer to the "Building Applications with Microsoft Access for Windows 95" manual. NOTE: Visual Basic for Applications (used in Microsoft Access for Windows 95 version 7.0) is called Access Basic in version 2.0. For more information about Access Basic, please refer to the "Building Applications" manual. For more information about using OLE Automation between Microsoft Access and Microsoft Word, search on the phrase "Create a Word Document using OLE Automation," and then "CreateObject function" using the Microsoft Access for Windows 95 Answer Wizard. For more information about the Microsoft Access Verb and Action properties, search on the phrases "Verb property" and "Action property," using the Microsoft Access Help Index.
MORE INFORMATIONThe following two examples demonstrate how to manipulate Microsoft Word 7.0 documents:
Example 1The following example assumes there is a document named Test.doc in the C:\Winword folder (directory). This example demonstrates how to open a Microsoft Word Document, reformat the text, and then close the document:
Example 2The following example demonstrates how to close a Microsoft Word document which is embedded on a form:
Keywords : AutoGnrl kbinterop PgmHowTo IntpOleA Technology : kbole Version : 2.0 7.0 Platform : WINDOWS Hardware : x86 Issue type : kbhowto |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |