How to automate Excel and then know the user closed it (192348)
The information in this article applies to:
- Microsoft Excel 2000
- 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
- Microsoft Office XP Developer
- Microsoft Office 2000 Developer
- Microsoft Excel 2002
- Microsoft Excel 97 for Windows
- The Microsoft Foundation Classes (MFC)
This article was previously published under Q192348 SUMMARY This article illustrates How To
- Automate Microsoft Excel 97, Excel 2000, or Excel 2002
using Microsoft Visual C++ and Microsoft Foundation Classes (MFC).
- Wait for the end-user to close that instance of
Excel.
- Have your VC++ controller know that Excel is
closed.
REFERENCES This article presents a specific approach to determining
that the end-user has terminated an instance of Excel. If you would like more
information about building a dialog-box project for other Automation servers,
please see the following article in the Microsoft Knowledge Base. 178749 How to create an Automation Project using MFC and a typelib
For more information on catching application events, please see the following
article in the Microsoft Knowledge Base: 183599 How to catch Microsoft Word 97 events using Visual C++
Modification Type: | Minor | Last Reviewed: | 2/22/2005 |
---|
Keywords: | kbProgramming kbAutomation kbhowto KB192348 |
---|
|