ExportToExcel.mdb (intermediate) |
Post Reply |
Author | |
Roger Carlson
Microsoft MVP Joined: 20 Feb 2008 Status: Offline Points: 261 |
Post Options
Thanks(0)
Posted: 01 Aug 2008 at 4:40am |
Please consider donating $1 per sample downloaded, 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 Access 2010-2019 accdb: ExportToExcel_2010.zip |
|
|
|
Sponsored Links | Want a good read? Try The Summer of His Life (available on Amazon!) |
Roger Carlson
Microsoft MVP Joined: 20 Feb 2008 Status: Offline Points: 261 |
Post Options
Thanks(0)
|
Update: Access 2010-2019 accdb: ExportToExcel_2010.zip
|
|
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |