Results 1 to 3 of 3
  1. #1
    Bertrand82 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Sep 2012
    Posts
    48

    Export to an excel document instead of XML

    Hi,



    Im using the below code for rapid multiple xml-file exports.

    Application.ExportXML ObjectType:=acExportTable, DataSource:="Table1", DataTarget:="C:\Table1.xml"
    Application.ExportXML ObjectType:=acExportTable, DataSource:="Table2", DataTarget:="C:\Table2.xml"
    Application.ExportXML ObjectType:=acExportTable, DataSource:="Table3", DataTarget:="C:\Table3.xml"

    Works fine, but instead I need to get files in Excel-format. What should I change in my code?

    br Bertrand

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Perhaps TransferSpreadsheet is what you are looking for?
    http://msdn.microsoft.com/en-us/libr...ffice.10).aspx

  3. #3
    Bertrand82 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Sep 2012
    Posts
    48
    True, thanks, did not thought of that. A linked connetion is the best alternative.

    br Bertrand

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

Similar Threads

  1. Export report to word document
    By jackyoung2012 in forum Reports
    Replies: 1
    Last Post: 03-16-2012, 11:16 AM
  2. Replies: 3
    Last Post: 10-07-2011, 07:49 AM
  3. Export table to excel using excel template
    By allenjasonbrown@gmail.com in forum Programming
    Replies: 1
    Last Post: 06-27-2011, 02:10 AM
  4. Replies: 7
    Last Post: 08-31-2010, 12:15 PM
  5. Export single records to new Word Document
    By karmaimages in forum Import/Export Data
    Replies: 0
    Last Post: 11-19-2009, 03:37 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