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

Macro to paste query into Excel

Status
Not open for further replies.

gard0128

Technical User
Jun 18, 2001
38
US
We are currently updating an Excel file from two queries in Access by cutting and pasting the data.

Is there a way to create a macro that would run the query, open the excel file and paste the data into a "data" worksheet?...or is there a better way?

Thanks for any help!!!!
 
Hi,

you can use the "Ouput To" macro command to send a table/query to a speadsheet.

You can also, with code, create and insert data to workbook cell range (you cannot do this with macros).

Cheers

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top