Results 1 to 4 of 4
  1. #1
    hklein is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    15

    export query into existing workbook


    Hello, I just want to ask, whether it is possible, that access exports some data into a existing workbook, but into a new sheet. Does anybody have experience with it? Thank you

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    If you solved this thread, would you care to share with others that read this forum?

  3. #3
    hklein is offline Novice
    Windows XP Access 2007
    Join Date
    Sep 2011
    Posts
    15
    Hi I have just realized, that the question was quite simple, and can be answered by typing the basic-method into the VBE editor.
    Code:
     DoCmd.TransferSpreadsheet {Direction of Transfer}, _     {SpreadSheet Type}, {Query to Select Data}, _     {Full Name of Excel WorkBook, True, {Name of WorkSheet}

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Thanks for sharing!

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

Similar Threads

  1. Replies: 1
    Last Post: 04-30-2012, 05:10 PM
  2. Replies: 1
    Last Post: 03-12-2012, 02:21 PM
  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. Exporting Query Results to an existing Excel Workbook
    By Dnphm in forum Import/Export Data
    Replies: 3
    Last Post: 07-13-2010, 11:40 AM
  5. Exporting from Query to existing Excel wksht
    By kfschaefer in forum Import/Export Data
    Replies: 0
    Last Post: 04-07-2006, 02:46 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