Results 1 to 4 of 4
  1. #1
    ankash is offline Novice
    Windows XP Access 2002
    Join Date
    Jul 2011
    Posts
    3

    HELP!! Export a Spreadsheet in Access to a xls file

    Hi all,



    I would like export a spreadsheet in Access to a excel file. I used Office.Spreadsheet 11.0.

    However, the following code only exports the spreadsheet into a xml file which is not I want!
    ALL I want is xls file type instead of XML!

    SpreadSht.Export strfilename, ssExportActionOpenInExcel, ssExportAsAppropriate



    Please kindly help on this problem. Many thanks.

  2. #2
    GinaWhipp's Avatar
    GinaWhipp is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2011
    Location
    Ohio, USA
    Posts
    377
    Use the TransferSpreadsheet method...

    DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "YourTable",
    "C:\YourPath", True

    ...I am a bit confused by your Office version, is it 2002? Because I don't know Office 11 for a PC.

  3. #3
    ankash is offline Novice
    Windows XP Access 2002
    Join Date
    Jul 2011
    Posts
    3
    Spreadsheet 11.0 is the OLE class. I use office 03

  4. #4
    GinaWhipp's Avatar
    GinaWhipp is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2011
    Location
    Ohio, USA
    Posts
    377
    Okay, cause in the Header it says Access 2002, so I was a bit confused.

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

Similar Threads

  1. Export to Text File Using DoCmd Access 2007
    By tonere in forum Programming
    Replies: 1
    Last Post: 03-30-2011, 06:14 PM
  2. Replies: 1
    Last Post: 08-12-2010, 10:04 PM
  3. File Export
    By Kencao in forum Import/Export Data
    Replies: 3
    Last Post: 02-01-2010, 05:27 PM
  4. How do you export a file with a unique file name
    By Budman42 in forum Import/Export Data
    Replies: 1
    Last Post: 10-15-2006, 06:10 PM
  5. File path name using Transfer spreadsheet
    By JohnN in forum Import/Export Data
    Replies: 0
    Last Post: 11-14-2005, 06: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