ACC: Using Automation to Transfer Data to Microsoft ExcelLast reviewed: February 4, 1998Article ID: Q129304 |
The information in this article applies to:
SUMMARYAdvanced: Requires expert coding, interoperability, and multiuser skills. This article demonstrates how to create two user-defined functions for copying records from a Microsoft Access recordset to a Microsoft Excel spreadsheet and printing the updated spreadsheet. The functions use OLE automation to transfer the data to Microsoft Excel. 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 your version of the "Building Applications with Microsoft Access" manual. NOTE: Visual Basic for Applications is called Access Basic in version 2.0. For more information about Access Basic, please refer to the "Building Applications" manual.
MORE INFORMATION
Copying 1 Field from 1 RecordTo take data from a text box on a form and to place it in a cell in an existing Microsoft Excel spreadsheet, formatting the text as bold, follow these steps:
Copying an Entire RecordsetTo create the function for transferring an entire recordset to Microsoft Excel, follow these steps:
Keywords : kbole IntpOleA kbfaq Technology : kbole Version : 2.0 7.0 97 Platform : WINDOWS Hardware : x86 Issue type : kbinfo |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |