Results 1 to 1 of 1
  1. #1
    tariq nawaz is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Aug 2012
    Posts
    31

    Excel export formatting

    i have a table which i need to export in excel on daily basis.

    i can export using the code


    "
    DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "input", "z:\Book1.xls", False, "Sheet1$"
    "
    i got table input and it exports sheet1 in the table called book1.

    i saw code on internet and used it for exporting it . i have to create table book1 to be there to export the file. it expots the table but it does not export the formatting and there are a lot of blank rows in export.
    i want some code to export the table with formatting as well as it deletes the data what is existing on file book1 everytime i export the file next time.

    Regards

    A learner
    Last edited by pbaldy; 09-24-2012 at 09:45 AM. Reason: Split post on unrelated topic to new thread

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

Similar Threads

  1. Formatting text of an export
    By Sarge, USMC in forum Import/Export Data
    Replies: 11
    Last Post: 02-27-2013, 09:08 PM
  2. Replies: 3
    Last Post: 10-07-2011, 07:49 AM
  3. Replies: 3
    Last Post: 01-17-2011, 08:13 PM
  4. export with formatting & layout preserves truncations??
    By yinchiao in forum Import/Export Data
    Replies: 0
    Last Post: 04-05-2010, 12:38 PM
  5. Export Formatting
    By arthura in forum Import/Export Data
    Replies: 0
    Last Post: 02-20-2009, 08:44 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