Roger's Access Library Homepage
Forum Home Forum Home > Roger's Access Library > Roger's Download Samples
  New Posts New Posts RSS Feed - ExportToExcel.mdb (intermediate)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login


Please consider donating $1 per sample downloaded, (find out why here)

ExportToExcel.mdb (intermediate)

 Post Reply Post Reply
Author
Message
Roger Carlson View Drop Down
Microsoft MVP
Microsoft MVP


Joined: 20 Feb 2008
Status: Offline
Points: 249
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roger Carlson Quote  Post ReplyReply Direct Link To This Post Topic: ExportToExcel.mdb (intermediate)
    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
 
Download
Access 2000 DAO (139 KB):
ExportToExcel2k.zip

Consider donating $1 per sample downloaded, find out why here.<
Back to Top
Sponsored Links


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down