Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Importing / Linking / November 2004

Tip: Looking for answers? Try searching our database.

Transfer Spreadsheet Export

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
colin - 04 Nov 2004 13:14 GMT
Hi

I am trying to use the transfer spreadsheet function to export a crosstab
query to a named worksheet in a workbook.

The worksheet already exists and when i call this function it creates a
"worksheet1".

Is it possible for it to overwrite the existing worksheet without renaming it?

I have look up functions that reference this worksheet and therefore i
cannot just create a new worksheet, the formulas will fail.

Please accept my thanks

rgds
Colin
Ken Snell [MVP] - 04 Nov 2004 14:53 GMT
Not by using TransferSpreadsheet.

You'd need to use Automation to open the EXCEL file, delete the spreadsheet,
and then do the export.

Signature

       Ken Snell
<MS ACCESS MVP>

> Hi
>
[quoted text clipped - 13 lines]
> rgds
> Colin
Nikos Yannacopoulos - 04 Nov 2004 15:01 GMT
Colin

Yes, it is possible, at least in A2K. If you look up TrabsferSpreadsheet in
Access help, you'll see that the Range argument is only used for import.
Well, guess what, it works for Export and it does exactl what you want! Put
the existing worksheet name in there, and it will be overwritten, keeping
its name.

HTH,
Nikos

> Hi
>
[quoted text clipped - 13 lines]
> rgds
> Colin
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.