Results 1 to 2 of 2
  1. #1
    registoni is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    13

    export access query into excel template starting from specific cell

    Hi,
    I have a simple select query in access consisting of 7 fields (columns), which I need to export to a ready-excel spreadsheet starting from cell A5 in excel sheet LIST_INTERNAL in the file INTERNAL.XLX. The number of columns (7, from A to G) and order of them in Excel is the same as in Access query.


    I suppose there should a simple code to do so, but as I am still a novice ACCESS user, I do not have any clue how to do it.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Can't use TransferSpreadsheet to export to specific range (import from range, yes) so this means VBA code that opens Excel as an object then writes data to the desired range. There are several methods to accomplish populating cells.

    1. Bing: Excel range copyfrom recordset
    http://msdn.microsoft.com/en-us/libr.../ff839240.aspx

    2. Write data to cells one at a time.
    Review: http://forums.aspfree.com/microsoft-...el-413629.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. export to excel starting from Cell A2
    By ice051505 in forum Programming
    Replies: 7
    Last Post: 04-25-2013, 03:15 PM
  2. Export Query to .ODS file starting at a specific cell
    By Baldeagle in forum Import/Export Data
    Replies: 4
    Last Post: 03-20-2013, 01:03 PM
  3. Export Access to Excel : from a specific row
    By ragsgold in forum Import/Export Data
    Replies: 4
    Last Post: 08-01-2012, 03:49 PM
  4. import specific cell from excel to access
    By maneuk in forum Import/Export Data
    Replies: 10
    Last Post: 07-01-2011, 06:24 AM
  5. Export a value to specific Excel cell
    By gg80 in forum Import/Export Data
    Replies: 5
    Last Post: 07-23-2010, 01:58 PM

Tags for this Thread

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