Results 1 to 5 of 5
  1. #1
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    839

    Save in XLSX format instead of Excel 5.0/95 workbook

    I am using :


    DoCmd.OutputTo 3, "Weekly_Summation", acFormatXLS, "C:\Temp\Weekly Summation - " & Format(Date, "dd mmm yyyy") & ".xls", , 0

    for an excel output. I have to edit the file and save as an Xlsx format manually as the recipients are unable to save after editing on their computer. How do I save as an XLSX?

    Tried
    acFormatXLS to acFormatXLSX
    ".xls" to ".xlsx"

    I also Googled it. Nada

    Doesn't work

    Thanks

    Wayne

  2. #2
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    I prefer to use the DoCmd.TransferSpreadsheet functionality

    Here is a link to MS site on its use. Pay attention to the Spreadsheet Type and Transfer Type sub categories

    https://msdn.microsoft.com/en-us/lib.../ff844793.aspx

  3. #3
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    839
    Thanks! After a little tweeking and figuring what to do, I made it work. Much appreciated.

  4. #4
    lowells is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Apr 2016
    Posts
    8
    Is there a way to do this for exporting an Access report? DoCmd.TransferSpreadsheet appears to only work for Tables. I currently use DoCmd.OutputTo to export my report but that is to an older (.xls) format.

  5. #5
    Thompyt is offline Expert
    Windows 8 Access 2010 32bit
    Join Date
    Sep 2014
    Location
    El Paso, TX
    Posts
    839
    I tried to transfer a report = no go. But my report is base on a query. Transfer the query - it would have the same output as the report.

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

Similar Threads

  1. Replies: 3
    Last Post: 06-23-2015, 12:23 PM
  2. Save and close Excel Workbook
    By scoe in forum Access
    Replies: 5
    Last Post: 07-30-2013, 08:50 AM
  3. Replies: 6
    Last Post: 07-23-2013, 11:57 AM
  4. Replies: 4
    Last Post: 12-17-2012, 01:21 PM
  5. Replies: 0
    Last Post: 11-17-2009, 02:35 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