Print Page | Close Window

ExportToExcel.mdb (intermediate)

Printed From: Roger's Access Library
Category: Roger's Access Library
Forum Name: Roger's Download Samples
Forum Description: A compendium of Microsoft Access 97 and 2000+ routines, each separated into its own sample database.
URL: www.rogersaccesslibrary.com/forum/forum_posts.asp?TID=350
Printed Date: 02 Jun 2020 at 9:27pm
Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com


Topic: ExportToExcel.mdb (intermediate)
Posted By: Roger Carlson
Subject: ExportToExcel.mdb (intermediate)
Date Posted: 01 Aug 2008 at 4:40am

Please consider donating $1 per sample downloaded, http://www.rogersaccesslibrary.com/whydonations.htm" rel="nofollow - find out why here .
 

ExportToExcel.mdb

This sample demonstrates how to export data from a database using the TransferSpreadsheet method, but have the data populate a formatted spreadsheet. The trick here is to export the data to a NEW tab in the Excel workbook and link the fields from the new tab into the formatted spreadsheet.

The template must be in the same directory as this app. Look and see that it is empty. Then run the process. The resulting spreadsheet "MySpreadsheet.xls" will have the data filled in.

Note: Requires references set to DAO 3.6 and Excel 9.0
 
Download

Access 2010-2019 accdb:  uploads/5/ExportToExcel_2010.zip" rel="nofollow - ExportToExcel_2010.zip
Access 2000 mdb:
uploads/5/ExportToExcel2k.zip" rel="nofollow - ExportToExcel2k.zip




-------------
Consider donating $1 per sample downloaded, http://www.rogersaccesslibrary.com/whydonations.htm" rel="nofollow - find out why here .<



Replies:
Posted By: Roger Carlson
Date Posted: 17 Mar 2020 at 7:31pm
Update: Access 2010-2019 accdb: ExportToExcel_2010.zip

-------------
Consider donating $1 per sample downloaded, http://www.rogersaccesslibrary.com/whydonations.htm" rel="nofollow - find out why here .<



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 - http://www.webwizforums.com
Copyright ©2001-2019 Web Wiz Ltd. - https://www.webwiz.net