Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

export ACCESS table into EXCEL file 1

Status
Not open for further replies.

schnigger

Technical User
Jun 24, 2002
6
EU
Hi there,

I am trying to export an MS ACCESS table into an EXCEL *.xls file using VBA code.

I've no problem with creating a *.dbf file, using the code:

DoCmd.TransferDatabase acExport, "dbase IV", _
"E:\Database\db_main", acTable, "export_prj_exc", _
"pastis.dbf"

But I can't find the right string I have to enter in order to get an Excel file instead - though this option (MS EXCEL 3, MS EXCEL 4 etc.) is an export option when using the standard ACCESS pulldown menu.

Anyone out there who knows?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top