UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Export Access report to Excel file, do not overwrite existing wo    
 
   
trapperalexander
post Feb 4 2009, 05:38 PM
Post #1

UtterAccess VIP
Posts: 2,135
From: Plano, TX



I have used the OutputTo command for a while and it is very useful. However, I now have several reports which I need to export to a single worksheet within a specific workbook. I am not sure how to accomplish this. I have tried creating code within Excel to re-format all the data from seperate worksheets into a single worksheet but every time I export the report the Excel workbook is written over and my code is gone.

I have also tried TransferSpreadsheet, exporting the recordsource queries and I have the same problem.

I can specify a specific worksheet to export to; is there a way to specify a specific range within the worksheet? OR
Is there a way to keep the transferSpreadsheet or OutputTo commands from deleting the code I write to re-format the worksheets?

Thanks in advance!
Go to the top of the page
 
+
theDBguy
post Feb 4 2009, 05:48 PM
Post #2

Access Wiki and Forums Moderator
Posts: 48,061
From: SoCal, USA



Hi Trapper,

Try giving the name of the worksheet in the Range argument of the TransferSpreadsheet method.

Hope that helps...
Go to the top of the page
 
+
trapperalexander
post Feb 4 2009, 06:53 PM
Post #3

UtterAccess VIP
Posts: 2,135
From: Plano, TX



Thanks DBGuy!

I have used this before many times but for some reason my recall memory is not functioning correctly today!
Go to the top of the page
 
+
theDBguy
post Feb 5 2009, 11:42 AM
Post #4

Access Wiki and Forums Moderator
Posts: 48,061
From: SoCal, USA



You're welcome. That happens to me too, sometimes. Good luck with your project.
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 23rd May 2013 - 09:20 PM