473,473 Members | 1,759 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

setting "output to" a specific excel worksheet?

49 New Member
Hi Guys

Just a thought. I'm using the "output to" action a macro (successfully) to populate an excel spreadsheet. No issues there. However, has anyone used this command to set the output to a specific worksheet within a workbook?

Im just wondering incase I can save on work books and consolidate outputs to 1 xls workbook - any ideas

Im using the following at present to set the targeet workbook

C:\Documents and Settings\Business Reporting\My Documents/customer.xls
Apr 10 '07 #1
3 3696
pks00
280 Recognized Expert Contributor
Cant use outputto but u could use excel automation, easy enough to do - depending...
what are you trying to export, is it a query or table or what
Apr 10 '07 #2
garethfx
49 New Member
Cant use outputto but u could use excel automation, easy enough to do - depending...
what are you trying to export, is it a query or table or what

Im exporting a query to the excel workbook
Apr 12 '07 #3
alangbehn
4 New Member
I'm not sure if you received an answer on the latest post, but I have tried this same thing you described. You cannot do this in the actual macro set up, but you have to export the macro to the native VBA code (found under Tools>Macros>Convert Macro to Visual Basic menu). Once there, you have additional options in the docmd object to call the specific Excel file name and also the tab. I have exported several queries into a single tab in Excel and named the file/tab myself this way.
Good luck.

Al
Jan 28 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Andre | last post by:
I'm not sure if this is the best place for this post or not, but I can't find many asp newsgroups anymore. I have an app that's 3-4 years old, and has been working just fine. One of the pages...
3
by: John | last post by:
Is there a way to code the button that's available in the query window--microsoft excel icon that exports to excel. I know transferspreadsheet will do this---but I want the query, which is in a...
13
by: MLH | last post by:
I have a textbox control used to enter a single alphanumeric character. It changes the case of "i" to upper case. But it does not do so with the letter "g". Its left as "g" - not changed to "G"? ...
1
by: Benny Ng | last post by:
Hi,All, Export Method: ------------------------------------------------------------------------- strFileNameExport = "Results" Response.Clear() Response.Buffer = True...
2
by: C | last post by:
Hi, I have a dataset which I bind to a datagrid on my ASPX. I then export the datagrid to Excel and stream the file to the user by setting the MIME Type etc etc. Response.ContentType =...
3
by: Marja Ribbers-de Vroed | last post by:
Hi, One of my clients has a strange problem with my webapplication which I think may be related to some firewall setting on his computer. On several screens in the application, it is possible...
6
by: Elena | last post by:
I'm trying to export data to an Excel worksheet. I can export the data in the cell values perfectly. I need the code to change a header and footer for the worksheet, not for the columns. Is...
13
by: Hemant Sipahimalani | last post by:
The following piece of code is being used to export HTML to excel. HttpContext.Current.Response.ContentType = "application/vnd.ms-excel"...
2
by: zz12 | last post by:
Hello. I have negatives values showing as parenthesis when viewed on an asp page but when exported to excel as follows: Response.ContentType = "application/vnd.ms-excel" ...the negative values...
0
VietPP
by: VietPP | last post by:
Hi all, I've asked too much question in this day, hehe. I'm trying to export my table data in OracleDB to excel. The problem is my charset in database is US7ACSII (using Vietnamese font), when...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.