How To Use OLE Automation to Add Data to Excel Sheet (142193)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q142193 SUMMARY
OLE Automation provides a way for Visual FoxPro for Windows to interact
with other OLE-compliant applications. Using OLE, the Visual FoxPro program
can start a Microsoft Excel session, open a workbook, select a worksheet
from the workbook, place data into a cell or range of cells, print a
worksheet, save the updated workbook, and close the Microsoft Excel
session. This article shows by example how to do just that.
REFERENCES
Examine the Microsoft Excel Help topic "Application Object" and the many
topics that are introduced in the Properties and Methods lists of that
topic.
For more information about many of the concepts in the example program,
please see the following articles in the Microsoft Knowledge Base:
139051
How To Select Cells in Microsoft Excel by Using OLE Automation 132535
PRB: Releasing Object Variable Does Not Close Microsoft Excel 138398 PRB: Release may not Remove OLE Objects from Memory
130809 INFO: KB List: OCX, OLE, ODBC, & 3rd-party Interoperability
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbcode kbhowto kbinterop KB142193 |
---|
|