Thanks for the clue Cathy. I've been trying to make a module and keep getting compile error (invalid outside procedure). it works well in the macro I just made and tested. my queries are on buttons on a form. the first button deletes data from tables that get their data from append queries. then a bunch of queries run that end up creating a large master table. next, several queries run that extract data from the master and configures it in excel workbooks for various departments. each department needs different bits of the data in a different layout. these departmental specifics used to be queries that I exported to excel but per your recommendation they are now stand alone tables I'm attempting to automate. for the moment, it's alright to overwrite the existing worksheet on the network share but ultimately I do need some kind of tracking, either a date appended to the file name or simply a one-up value for each work day...or whatever else might work...open to suggestion on this. -----Original Message----- From: Cathy.Evans@xxxxxxxxx [mailto:Cathy.Evans@xxxxxxxxx] Sent: Tuesday, October 19, 2004 10:39 AM To: mso@xxxxxxxxxxxxx Subject: [mso] Re: Access/Excel I put the code in the click event of a button I placed on a form. I put a button on the form, clicked on the 'on click' property builder button, chose the code builder and inserted the code there. I chose a form so other people could also run the export, but you could also use the transfer spreadsheet command built into macros, select TransferSpreadsheet from the pull down box and fill in below accordingly. How do you run your macros? From the database window or from a form? hth, Cathy =20 "Glenda Wells" <gwells@xxxxxxxxxxx To: <mso@xxxxxxxxxxxxx> > Sent by: cc: mso-bounce@freelist s.org Subject: [mso] Re: Access/Excel =20 10/19/2004 10:08 AM Please respond to ..... mso =20 =20 this is great Cathy (&Jim) I've got a macro to process my data and made a change so the file I want to export is a table instead of query. where do I put the code you provided in the macro...this looks like VBA, do I need something besides a macro? /g -----Original Message----- From: Cathy.Evans@xxxxxxxxx [mailto:Cathy.Evans@xxxxxxxxx] Sent: Tuesday, October 19, 2004 10:04 AM To: mso@xxxxxxxxxxxxx Subject: [mso] Re: Access/Excel Earlier this year (March Archives) Jim Pettit helped me with the same, only I was exporting a table. This code makes my table and exports to certain location on project server. He said the TransferSpreadsheet only works on tables. DoCmd.SetWarnings False DoCmd.OpenQuery "QueryName", acViewNormal, acEdit DoCmd.SetWarnings True DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "TableMadeByQueryName", "c:\path\sub path\DestinationExcelName.xls" =3D20 "Glenda Wells" <gwells@xxxxxxxxxxx To: <mso@xxxxxxxxxxxxx> > Sent by: cc: mso-bounce@freelist s.org Subject: [mso] Access/Excel =3D20 10/19/2004 09:27 AM Please respond to ..... mso =3D20 =3D20 Hi Gurus. ...been so busy can't see straight but lurking about when I get a chance. I run a macro in an Access DB to extract data, after which I export a query to a network shared space as an Excel worksheet. Would y'all please gimme clues on automating this process? thanks. /glenda ------------------------------------------------------------------------ ----------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain proprietary, business-confidential and/or privileged material. If you are not the intended recipient of this message you are hereby notified that any use, review, retransmission, dissemination, distribution, reproduction or any action taken in reliance upon this message is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of the company. ------------------------------------------------------------------------ ------------------------------- ************************************************************* You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or MicrosoftOffice@xxxxxxxxxxxxxxxx To send mail to the group, simply address it to mso@xxxxxxxxxxxxx To Unsubscribe from this group, send an email to mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in the subject line. Or, visit the group's homepage and use the dropdown menu. This will also allow you to change your email settings to digest or vacation (no mail). //www.freelists.org/webpage/mso To be able to use the files section for sharing files with the group, send a request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with instructions. Once you are a member of the files group, you can go here to upload/download files: http://www.smartgroups.com/vault/msofiles ************************************************************* _____ =20 << ella for Spam Control >> has removed 13009 Spam messages and set aside 0 Newsletters for me You can use it too - and it's FREE! www.ellaforspam.com=09 ************************************************************* You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or MicrosoftOffice@xxxxxxxxxxxxxxxx To send mail to the group, simply address it to mso@xxxxxxxxxxxxx To Unsubscribe from this group, send an email to mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in the subject line. Or, visit the group's homepage and use the dropdown menu. This will also allow you to change your email settings to digest or vacation (no mail). //www.freelists.org/webpage/mso To be able to use the files section for sharing files with the group, send a request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with instructions. Once you are a member of the files group, you can go here to upload/download files: http://www.smartgroups.com/vault/msofiles *************************************************************