How To Attach to a Running Instance of an Office Application (238975)
The information in this article applies to:
- Microsoft Office XP Developer
- Microsoft Office 2000 Developer
- Microsoft Outlook 98
- Microsoft Office 97 for Windows
- Microsoft Office for Windows 95
- Microsoft Office for Windows 95 7.0a
- Microsoft Office for Windows 95 7.0b
- Microsoft Visual C++ 4.0
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q238975 SUMMARY To automate an Office application that is already running,
you can use the GetActiveObject() API function to obtain the IDispatch pointer for the running
instance. Once you have this IDispatch pointer for the running instance, you
can use the methods and the properties of the running instance.
Modification Type: | Minor | Last Reviewed: | 8/18/2005 |
---|
Keywords: | kbhowto KB238975 kbAudDeveloper |
---|
|