Results 1 to 2 of 2
  1. #1
    sonoamore is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    18

    Exporting to specific spots on excel.

    First off: Apologies if this is in another thread, but I didn't turn up what I needed in the search.



    I'm trying to export the values from about 10 fields into specific spots in an excel report. What I need to have happen on button click:

    - Open selected file (Let's just say C:\Report.xlsx) as a copy.

    - Insert fields A,B,C,D,E,F,G,H from the currently open form into A1, B1, C1, D1, E1, F1, G1, H1 on Report.xlsx respectively.

    I've tried a few things but honestly I'm not really getting anywhere. Any help is greatly appreciated!!!!!!!!

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    This is going to involve VBA.

    Ken Snell has a lot of examples of Access automation with Excel.
    http://www.accessmvp.com/kdsnell/EXCEL_Export.htm


    I have code that exports an query using Docmd.OutputTo, then writes some formulas to specific cells, then adds formatting. I used bits and pieces of Ken's examples.

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

Similar Threads

  1. Replies: 3
    Last Post: 04-03-2013, 12:05 PM
  2. Exporting a query to a specific Excel format
    By Ronald Mcdonald in forum Import/Export Data
    Replies: 3
    Last Post: 04-27-2012, 10:29 AM
  3. exporting access report to specific excel cells
    By grgold14 in forum Import/Export Data
    Replies: 1
    Last Post: 02-07-2012, 04:38 PM
  4. Exporting to Specific Excel Sheet
    By unrealtb in forum Access
    Replies: 2
    Last Post: 01-24-2012, 10:32 PM
  5. Exporting to .txt with Specific Format
    By KrenzyRyan in forum Import/Export Data
    Replies: 12
    Last Post: 11-18-2011, 04:57 AM

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