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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export an Access 2003 query using a macro to Excel 2003

Status
Not open for further replies.

Gucci2006

Technical User
Jan 4, 2007
5
US
I am attempting to write a macro that will export a query to Excel 2003. The Excel workbook contains numerous sheets. How do I write the path (in the output macro box)so that the correct sheet will be updated with the exported information.
 
the correct sheet will be updated
I'd use Ms-Query (QueryTables objects in Excel) instead ...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 

Exporting to an existing excel file, a table/query that has the same name as a sheet, then new data is written over old. The process will fail if you have active filters. The worst is that if new data is 15 rows and old >15 you 'll get the 15 new at the top excel rows and the rest of the old ones!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top