Results 1 to 6 of 6
  1. #1
    vestlink is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2011
    Posts
    3

    Export all tables to 1 excel file


    Hi.

    Forgive me if this question has been asked before, but i couldn't find any solutions here or in Google. If it has please guide me to the solution :-)

    I'd like to export all my tables in a Access 2007 db to one Excel-file where every table name should be the excel tab name. The first row should represent the column names.

    I'm a total newbie at this :-(

    Hope you can help me out on this.

    Best regards,

    Nicolai

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Have you looked at the transferspreadsheet command line?

    docmd.transferspreadsheet

    if you do that it and hit space it will bring up a hint box that shows you the format it expects for exporting a table to an excel spreadsheet, you just have to fill in the variable names, just be aware that the very last variable will be your worksheet name and you have to follow it with a $ mark or it will try to export all of your tables to the same worksheet

  3. #3
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by vestlink View Post
    Hi.

    Forgive me if this question has been asked before, but i couldn't find any solutions here or in Google. If it has please guide me to the solution :-)

    I'd like to export all my tables in a Access 2007 db to one Excel-file where every table name should be the excel tab name. The first row should represent the column names.

    I'm a total newbie at this :-(

    Hope you can help me out on this.

    Best regards,

    Nicolai
    some genius once wrote this FAQ, long ago:

    http://www.access-programmers.co.uk/...d.php?t=191123

    I wonder if it still works...

  4. #4
    vestlink is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2011
    Posts
    3
    Quote Originally Posted by ajetrumpet View Post
    some genius once wrote this FAQ, long ago:

    http://www.access-programmers.co.uk/...d.php?t=191123

    I wonder if it still works...

    Thank you for your answer :-)

    I pasted the code in the general tab, but it didn't seem to have any effect. No errors though.

    Am I missing something when it comes to running the code?

  5. #5
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by vestlink View Post
    Am I missing something when it comes to running the code?
    Probably. I doubt it's verbatim. You know that's it's Access code right? "general tab" confuses me.

  6. #6
    vestlink is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2011
    Posts
    3
    My problem is propably that i don't know how to run the code from access.

    Thus, I'm a total newbie and prob also a nobk :-)

    In the light of that i'd appreciate something like a step-by-step kinda thing


    Nicolai

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

Similar Threads

  1. Replies: 1
    Last Post: 04-17-2011, 04:16 PM
  2. Output tables to an excel file on a network drive
    By GraemeG in forum Import/Export Data
    Replies: 1
    Last Post: 04-01-2011, 03:06 PM
  3. Splitting an Excel File into Multiple Access Tables on Import
    By TheWolfster in forum Import/Export Data
    Replies: 4
    Last Post: 04-29-2010, 04:52 AM
  4. Export a simple query result to an excel file
    By wop_nuno in forum Import/Export Data
    Replies: 1
    Last Post: 05-21-2009, 04:18 AM
  5. Replies: 0
    Last Post: 04-29-2009, 04:27 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