Hi,
I have three crosstab queries that needs to be placed at the different
ranges in the same excel sheet .
How can I achieve this with do.cmd.transferspreadsheet.
Dim strQName As String
strQName = "7a-query"
Dim strNewName As String
strNewName = "c:\file.xls"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, strQName,
strNewName, True
I have the sample code here.
Now, how can I put the second query(which is 7b-query) on the same
tab,"7a-query" at the range, G2?
Thanks,
Prasanna.
Prasanna - 01 Nov 2007 21:13 GMT
Hi,
I tried adding the Range with the following addition to the Docmd code.
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, strQName,
strNewName, True,G2:x
This gave me the error.
Please help
thanks,
Prasanna.
> Hi,
> I have three crosstab queries that needs to be placed at the different
[quoted text clipped - 13 lines]
> Thanks,
> Prasanna.