Results 1 to 3 of 3
  1. #1
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 7 64bit Access 2003
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659

    Export Query to specific excel sheet

    I have multiple queries that I have made and want them all to be exported to a new excel file each time the process is ran. Each query should be have its own sheet.




    How should I do this?

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    In Access 2007 and after this need is particularly easy - you just do it manually once and then the wizard prompts you to save those steps and name them as an Export Spec - which thereafter can be fired like any macro.

    In Access 2003 and before one uses the Transfer Spreadsheet method; you'll want to look that up in VBA help.

  3. #3
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 7 64bit Access 2003
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    I found some information on the below, but name of worksheet doesn't see to work for me.

    DoCmd.TransferSpreadsheet {Direction of Transfer}, _ {SpreadSheet Type}, {Query to Select Data}, _ {Full Name of Excel WorkBook, True, {Name of WorkSheet}

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

Similar Threads

  1. Export Filtered ListBox output to a Excel Sheet
    By gokul1242 in forum Programming
    Replies: 4
    Last Post: 10-11-2012, 02:19 PM
  2. Export multiple query's to multiple sheet excel
    By vaikz in forum Import/Export Data
    Replies: 4
    Last Post: 08-15-2012, 08:53 AM
  3. Exporting to Specific Excel Sheet
    By unrealtb in forum Access
    Replies: 2
    Last Post: 01-24-2012, 10:32 PM
  4. Export Query to Specific Sheet and Rows/Columns
    By chewbears in forum Queries
    Replies: 7
    Last Post: 11-30-2011, 09:44 AM
  5. Replies: 1
    Last Post: 04-17-2011, 04:16 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