J
jfsauzeat129 via AccessMonster.com
I know this subject has been tackled several times but I wasn't able to find
the code to achieve this
I am exporting a query to an existing Excel file with several tabs.
I would like the query to replace the tabs they export every time I export
from Access.
Instead Excel creates a new tab, indexing the name of the tab everytime I
export.
I have the following code:
Dim sXL As String
Dim xlApp As Object
Dim strPath As String
sXL = "C:\\Quality\Critical Parameters Tracking\QR_CP.xls"
DoCmd.TransferSpreadsheet acExport, , "QR_CP_product1", sXL, True,
"QR_CP_product1"""
Thanks,
Jeff
the code to achieve this
I am exporting a query to an existing Excel file with several tabs.
I would like the query to replace the tabs they export every time I export
from Access.
Instead Excel creates a new tab, indexing the name of the tab everytime I
export.
I have the following code:
Dim sXL As String
Dim xlApp As Object
Dim strPath As String
sXL = "C:\\Quality\Critical Parameters Tracking\QR_CP.xls"
DoCmd.TransferSpreadsheet acExport, , "QR_CP_product1", sXL, True,
"QR_CP_product1"""
Thanks,
Jeff