newbee2
Technical User
- Apr 21, 2002
- 85
Greetings,
I use the following,
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel8, "Five_Market_Union", "C:\My documents\Work in progress\KPI", hasfieldnames:=True
From an access 2000 project,
To paste a queries results in a worksheet whilst it is closed. The Spreadsheet must be closed or the transfer wont happen
The worksheet has its own code to manipulate the data to other sheets when it opens.
What I have discovered is that old results remain on the spreadsheet depending on the size of the query.
What I would like is to clear the range on the spreadsheet B4 transferring the new data.
I want to be able to clear Range("A2:F18") when the access projects code is run.
My immediate thoughts are that I will have to automate open an Excel instance, open the worksheet, clear the range then close the spreadsheet, destroy the instance and continue transfer.
Is there an easier way?
Thanks in advance
Bill
I use the following,
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel8, "Five_Market_Union", "C:\My documents\Work in progress\KPI", hasfieldnames:=True
From an access 2000 project,
To paste a queries results in a worksheet whilst it is closed. The Spreadsheet must be closed or the transfer wont happen
The worksheet has its own code to manipulate the data to other sheets when it opens.
What I have discovered is that old results remain on the spreadsheet depending on the size of the query.
What I would like is to clear the range on the spreadsheet B4 transferring the new data.
I want to be able to clear Range("A2:F18") when the access projects code is run.
My immediate thoughts are that I will have to automate open an Excel instance, open the worksheet, clear the range then close the spreadsheet, destroy the instance and continue transfer.
Is there an easier way?
Thanks in advance
Bill