Results 1 to 4 of 4
  1. #1
    GraeagleBill's Avatar
    GraeagleBill is online now Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    2,096

    Output to Excel from VBA

    What's involved in writing directly to a Excel file (xls)? I currently have an application that is writing comma separated strings to a csv file, but it would be more desirable if I could create an xls file instead.



    I found a couple of examples, but they pertained to A2007. I need to keep the current application in A2003

    Thanks,
    Bill

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Options include OutputTo, TransferSpreadsheet, and automation:

    http://support.microsoft.com/kb/247412

    There's a good chance that whatever method you found for 2007 would work in 2003.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    GraeagleBill's Avatar
    GraeagleBill is online now Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    2,096
    Paul,

    It looks like a winner, as the data is already in a two dimensional array, so can easily be written to a corresponding range of cells.

    Thanks,
    Bill

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Happy to help Bill.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. MS Access to Excel Output
    By rjbautista20 in forum Programming
    Replies: 7
    Last Post: 02-22-2012, 07:23 PM
  2. Output Report to Excel using MACROS
    By taimysho0 in forum Programming
    Replies: 1
    Last Post: 02-22-2012, 03:49 PM
  3. Output Report to Excel
    By BLD21 in forum Reports
    Replies: 5
    Last Post: 04-26-2011, 07:53 AM
  4. Formatted Excel Output
    By jerryrs in forum Import/Export Data
    Replies: 6
    Last Post: 02-26-2011, 11:58 PM
  5. URGENT HELP: output to excel
    By jerryrs in forum Import/Export Data
    Replies: 1
    Last Post: 12-22-2010, 12:18 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