Results 1 to 5 of 5
  1. #1
    vaikz is offline Novice
    Windows 7 Access 2003
    Join Date
    Mar 2009
    Posts
    12

    Export multiple query's to multiple sheet excel

    Hi, good day.


    My problem is how to export multiple query to excel, where each query will be exported to each worksheets and cell range on 1 workbook.
    Let say:
    query1 = worksheet1 B6
    query2 = worksheet2 C5
    and so on ...
    It will also nice if it will automate the name of the worksheets from the name of the query.

    What is the best and effective way to do this?

    Thanks in advance.

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    How good are your VBA programming skills?? Check out Ken Snell's site at:
    http://www.accessmvp.com/KDSnell/EXCEL_Export.htm

  3. #3
    vaikz is offline Novice
    Windows 7 Access 2003
    Join Date
    Mar 2009
    Posts
    12
    Thanks for the reply ssanfu.

    I'm not really that good but I understand vba . I've done exporting data to excel but most
    of the time only 1 table to 1 worksheet. I was also able to use datapigs access explosion.
    I don't have problem exporting 1 query but i've got no success exporting the next query.

    I'll check the link.

  4. #4
    ragsgold is offline Access & Excel Developer
    Windows XP Access 2000
    Join Date
    Oct 2009
    Location
    Denver,CO
    Posts
    51
    Quote Originally Posted by vaikz View Post
    Thanks for the reply ssanfu.

    I'm not really that good but I understand vba . I've done exporting data to excel but most
    of the time only 1 table to 1 worksheet. I was also able to use datapigs access explosion.
    I don't have problem exporting 1 query but i've got no success exporting the next query.

    I'll check the link.
    Vaikz

    You can use the following Macro "Transfer spreadsheet" in versions 2007 and below or importexportspreadsheet in Access 2010

    Create as many commands to the extent of your query list and repeat the process. For instance if you have 10 queries use it 10 times and in all 10 cases give the destination location file name. Same file name is important because thats how you can export all your queries into same file but different sheet names.

    When you execute the macro i will export each query to the same file but in different tabs (name your individual queries in access to the name you want in the excel sheet names) in the excel. 1 macro how many ever queries you have you can include them in that. try it and let me know how this works for you.

  5. #5
    vaikz is offline Novice
    Windows 7 Access 2003
    Join Date
    Mar 2009
    Posts
    12
    thanks a lot ragsgold

    I already solve this one long time ago, I just forgot to mark it solve. And in fact its the same method I use on what you suggested. Thanks a lot.

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

Similar Threads

  1. Multiple users to access excel sheet
    By nccool2104 in forum Access
    Replies: 0
    Last Post: 06-22-2012, 01:13 PM
  2. Export Table in Access 2007 to Multiple Workbooks in Excel 2007
    By hutchinsm in forum Import/Export Data
    Replies: 5
    Last Post: 03-01-2012, 05:23 PM
  3. Export Query to Specific Sheet and Rows/Columns
    By chewbears in forum Queries
    Replies: 7
    Last Post: 11-30-2011, 09:44 AM
  4. Replies: 4
    Last Post: 06-14-2011, 07:19 PM
  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