Results 1 to 3 of 3
  1. #1
    rkalapura is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2011
    Location
    New York
    Posts
    69

    Export to Excel

    I have a report in Access 2010 which I often need to send to Excel. I am using a command button to export it to excel. It first open the report, export with formating and then close the report. It does everything fine in the macro command sequence.



    My problem is when I open the excel report, which is exported, the whole report open up in "Grey-out". I could see only the headers. Then, if I select the whole report in Excel and change the font color to black it is good - it looks normal.

    Any body know why it is happening? Anything I am doing wrong or anything I need to do before I start the export process?

    Note: "ExportwithFormatting" macro command has many option like Object Type, Object Name, Output Format, Output File, Auto Start, Template, Encoding and Output Quality. Is that anything I need to do with "Encoding". I couldn't find any option in the drop down. Can you please tell what this encoding do?

    Thank you and God Bless You.

  2. #2
    lzhao7573 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    2
    I tried to export a report to Excel, it retain the original format in Access.

  3. #3
    roaftech is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Nov 2012
    Location
    Romania
    Posts
    65
    I used to do this a lot when analysing traffic violations (up to 40,000 per month!); using the data analysis abilities in Access and then transferring the outcome to Excel for its superior formatting and graphing facilities. IIRC, I used to export from Access in .csv format and then open that file in Excel, using a workbook with several worksheets. The first worksheet was formatted to receive the block of csv data; the subsequent sheets were set up to reformat the data as required and then subsequent sheets contained the graphs, report tables etc. This process does assume that you are transferring a matching dataset each time - the values and the number of records can change but the columns must remain consistent for this to work. It's not essential but it also helps if you understand Excel's array formulas.

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

Similar Threads

  1. Replies: 3
    Last Post: 10-07-2011, 07:49 AM
  2. Excel Export Tab Name
    By jgelpi16 in forum Programming
    Replies: 3
    Last Post: 06-28-2011, 08:36 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. Trying to export to Excel
    By BigCat in forum Programming
    Replies: 19
    Last Post: 05-19-2011, 01:49 AM
  5. Export to Excel
    By vaikz in forum Import/Export Data
    Replies: 3
    Last Post: 03-25-2009, 09:37 AM

Tags for this Thread

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