Results 1 to 2 of 2
  1. #1
    jsonlee is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    4

    Export Multiple Queries to xls 97-2003 separte worksheets same workbook

    Ive googled and googled and have found bits and pieces of useful info on how to achieve this but struggling to put it all together. I am using Ms access 2010 and have been assigned a task to update an already functioning export that allows users to pick a qry from a listbox. Clicking an export button opens the save as dialogue where users pick 97-2003 and assign a filename and save.



    I would like to do the same exact thing but with 2 separate queries into 2 separate worksheets on the same workbook.
    Current code accomplishes the single worksheet example.
    DoCmd.OutputTo acOutputQuery, strQryName

    Thanks,
    Jason

  2. #2
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2010 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Use DoCmd.TransferSpreadsheet - the file name will remain the same and the sheet name will be taken from the query name.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 0
    Last Post: 11-04-2011, 06:09 AM
  2. Exporting Queries to Excel Sheets, 1 Student per Workbook
    By StudentTeacher in forum Programming
    Replies: 8
    Last Post: 09-02-2010, 11:48 AM
  3. Export 2 Queries to Same Workbook in Access 2010
    By Mikey in forum Import/Export Data
    Replies: 2
    Last Post: 08-23-2010, 05:16 AM
  4. Deleting Worksheets on a Excel workbook
    By BED in forum Programming
    Replies: 0
    Last Post: 07-27-2010, 01:20 PM
  5. Import Excel Worksheets into Access 2003
    By KramerJ in forum Programming
    Replies: 0
    Last Post: 03-18-2009, 04:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums