473,799 Members | 3,866 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

OutputTo Excel

I'm using OutputTo to send data into Excel. It has been working nicely.
Now, I need to add more worksheets using OutputTo. Whenever I use it, it
replaces the existing worksheet. Is there any way to get OutputTo to create
more than one worksheet?
Nov 12 '05 #1
2 6133
On Thu, 02 Oct 2003 04:49:13 GMT, "Randy Harris" <ra***@SpamFree .com>
wrote:

No.
You'll have to use the much more powerful capabilities of Automation.
Create an object of type Excel.Applicati on, and then call the methods
available in the Excel object model. The model is documented in an
Excel help file, which is an optional part of the setup program. So
make sure you do a full install.

-Tom.

I'm using OutputTo to send data into Excel. It has been working nicely.
Now, I need to add more worksheets using OutputTo. Whenever I use it, it
replaces the existing worksheet. Is there any way to get OutputTo to create
more than one worksheet?


Nov 12 '05 #2
My sincere thanks to both Tom and Pieter. I spent most of the night,
tearing out the little hair I have left, trying to get OutputTo to work.
The rest of the night I spent trying to do it with FormulaArray and
Transform, based on a single example in the A2K Developers Handbook. Never
could get that to work at all.

I found the samples you guys recommended, the automation works great. The
CopyFromRecords et Method used is really simple and incredibly fast.

Randy

"Randy Harris" <ra***@SpamFree .com> wrote in message
news:d7******** ************@ne wssvr28.news.pr odigy.com...
I'm using OutputTo to send data into Excel. It has been working nicely.
Now, I need to add more worksheets using OutputTo. Whenever I use it, it
replaces the existing worksheet. Is there any way to get OutputTo to create more than one worksheet?

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
8052
by: deko | last post by:
This code is behind a button that exports the contents of a query ("qryXL_Tx") to an Excel spreadsheet. It works fine the first time, but will not run a second time. When I go to look at my query... it's blank! No SQL at all.... Any ideas why this sub is eating my query?? Private Sub cmdExportXL_Click() strXLfile = "Transactions_" & strTxType & strTxAcct & strQtr & strYr & ".xls"
1
6198
by: barma16 | last post by:
I've hit a bit of a brick wall here, and could use some advice. I have an Access application whose output is a four-tab Excel spreadsheet where three of the four tabs are the result of database queries. A number of fields in the queries are designed to become formulae in Excel after the export has taken place (and they need to be in Excel rather than Access). I need to use the TransferSpreadsheet Method rather than the OutputTo to enable...
1
2746
by: paul.hanti | last post by:
This board has been a plethora of information. Thanks to all that respond! I have a quick question regarding the built-in OutputTo macro. I've built a shared database in Access 2003 (in Access 2000 file format) that resides on a shared network drive. This OutputTo macro is essentially setup to export one small table to an Excel spreadsheet once a user clicks a command button on the switchboard. Another user and I (both of us have...
3
3113
by: kscheu via AccessMonster.com | last post by:
I am using OutputTo to export a query to excel, prompt the user to save as and then open the excel file. See below: DoCmd.OutputTo acOutputQuery, "q701ExportFields", acFormatXLS, , True 'Opend Excel Automatically Now I want to add a row to the opened spreadsheet at the top and add a title. How do I accomplish this? I am new to excel formatting, but I created a macro and the code to do this is: Rows("1:1").Select Selection.Insert...
1
5322
by: Ryan | last post by:
Hello. I was hoping that someone may be able to assist with an issue that I am experiencing. I have created an Access DB which imports an Excel File with a particular layout and field naming. Next the user can go into a Form which basically a dynamic query with a friendly interface that eventually outputs a table that is stored in the DB as well as exported to a CSV file. The CSV file is then used with a vendor solution to fill in...
0
1736
by: Mark123 | last post by:
Every time people using our 97 Runtime App try to export (OutputTo) a previewed report to Excel or Word 2003 it gives a "Microsoft Access has encountered an error" and then proceeds to crash and terminate. The error doesn't occur if they open Word 2003 or Excel 2003 first. Any ideas why this is happening? The thing is that it only occurs on a particular report that is:
2
1503
by: RZ15 | last post by:
Hi, I'm using MS Access 2000. I have a button that does this: DoCmd.RunMacro "ExportSomeQuery" the macro uses the OutputTo command to export the query into excel. I want it to export in MS Excel 97-2000 format, but it exports in Microsoft Excel 5.0/7.0. I can't seem to find a way to change this. Can someone help me adjust this? Thanks in advance,
3
3127
by: RZ15 | last post by:
Hi, I'm going to be giving many people an access database file with a switchboard with quite a few essential queries (query-by-form) so that they can pull data whenever they want. I have a button to export the file into excel as well. The issue I have is with this button. I used to have this button running a macro that would OutputTo in Excel format. Since this limits me to around 16k records because of it outputting into microsoft excel...
1
1758
by: afr0ninja | last post by:
Hello! I'm having an issue with the OutputTo function of Access. I have a few queries that I export to excel (by way of the OutputTo function) This works fine. I then take an excel sheet and link some data from these exported sheets with other data from other excel sheets. I can create a link to one of the exported sheets. It will import the information fine, I can manipulate is needed, no issues. However, once I save the excel...
0
9687
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9543
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10237
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10029
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7567
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6808
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5467
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4144
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 we have to send another system

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.