ajolson1964
Programmer
I am exporting a query to excel using the following code:
DoCmd.OutputTo acOutputQuery, "AllOut", acFormatXLS, , True
It creates a new excel file called AllOut and places the information in a worksheet that it names AllOut. Where that works I would like to take this to the next level and just cant.
What I would like to do is when the query is exported I want the query exported to a excel file that has already been created. Specifically I would like the query to open up that pre-determined file and place the results of the query in a specified worksheet within the excel file. And if at all possible I would like it to place it in a pre-determined row or cell within that worksheet, although the last is not that critical.
Any help would be appreciated
Thanks
Andy