PC Review


Reply
Thread Tools Rate Thread

Transfer 2 querys to the excel workbook but to different sheets

 
 
=?Utf-8?B?VGljb3Rpb24=?=
Guest
Posts: n/a
 
      5th Nov 2007
Hi

I have a problem. I use the following code to transfer a query to an excel
sheet.

Private Sub Command9_Click()
DoCmd.OutputTo acOutputQuery, "6_FORECAST_TO_VENDOR", acFormatXLS,
"Forecast.XLS", True
End Sub

What I want is to transfer yet another query to the same excel workbook but
another sheet. How can this be done?

regards
Ticoton
 
Reply With Quote
 
 
 
 
Alex Dybenko
Guest
Posts: n/a
 
      6th Nov 2007
Hi,
have a look here:
http://accessblog.net/2006/07/export...cel-range.html

--
Best regards,
___________
Alex Dybenko (MVP)
http://accessblog.net
http://www.PointLtd.com

"Ticotion" <(E-Mail Removed)> wrote in message
news:16E74D61-1831-41B6-9D78-(E-Mail Removed)...
> Hi
>
> I have a problem. I use the following code to transfer a query to an excel
> sheet.
>
> Private Sub Command9_Click()
> DoCmd.OutputTo acOutputQuery, "6_FORECAST_TO_VENDOR", acFormatXLS,
> "Forecast.XLS", True
> End Sub
>
> What I want is to transfer yet another query to the same excel workbook
> but
> another sheet. How can this be done?
>
> regards
> Ticoton


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Merging workbooks into different sheets in a different workbook =?Utf-8?B?Tmljbw==?= Microsoft Excel Misc 0 6th Nov 2007 08:49 AM
Querys based on Querys =?Utf-8?B?R2lsbA==?= Microsoft Access Queries 7 2nd Sep 2007 07:27 PM
Print sheets by "All Sheets in workbook, EXCEPT for specific named sheets". Possible? Corey Microsoft Excel Programming 2 11th Dec 2006 02:35 AM
querys from multiple sheets tlachena Microsoft Excel Misc 2 27th Nov 2005 05:57 PM
passing different id for open querys for code Rick Brandt Microsoft Access Forms 5 4th May 2005 04:15 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:18 PM.