Edited by HansV to remove
and
tags that caused horizontal scrolling – please heed the warning you get when using !
I’m using the following code to export data from a query to an EXISTING spreadsheet which has EXISTING worksheets in it. One of the worksheets name is “CLOSED”.
I want to export the data from the query to the CLOSED worksheet w/in the spreadsheet. However, it keeps creating a new spreadsheet and naming the worksheet to the name of the query.
What needs to be modified in this code to achieve what I’m after?
DoCmd.OutputTo acOutputQuery, “q_HC_Closed”, acFormatXLS, “F:DatabasesCaseMgmtCMSCaseAlertHigh DollarCaseAlert High dollar_Master_Test.xls”, False, “”
Thanks in advance