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 / March 2006

Tip: Looking for answers? Try searching our database.

Exporting to a named worksheet and workbook

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David - 28 Mar 2006 23:40 GMT
Hello,

I have used the DoCmd.OutputTo to export data from a query to a user defined
.xls file.

I now want to export data to a Sheet2 in a spreadsheet, which I know the
name of.

I am not clear whether the parms in DoCmd.OutputTo allow for a worksheet to
be named as the destination of the export.

Any ideas?
Signature

David

John Nurick - 29 Mar 2006 05:33 GMT
Hi David,

You can't do this with OutputTo. Instead, use TransferSpreadsheet and
specify the worksheet in its Range argument.

>Hello,
>
[quoted text clipped - 8 lines]
>
>Any ideas?

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
Klatuu - 29 Mar 2006 14:57 GMT
Note the Help file will tell you TransferSpreadsheet will fail if you try to
use the Range argument for an export.  That is not true, it does work.

> Hi David,
>
[quoted text clipped - 18 lines]
>
> Please respond in the newgroup and not by email.
David - 29 Mar 2006 16:02 GMT
That did the trick.  Thanks John.
Signature

David

> Hi David,
>
[quoted text clipped - 18 lines]
>
> Please respond in the newgroup and not by email.
 
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.