Can’t Export More than 65,000 Rows to Excel 2007?

April 22, 2010 by datapig Leave a reply »

Kusleika and I are at the Excel and Access Power User Workshop this week. Between you and me, he’s not doing that well.

Anyway, one of our attendees asked why Access 2007 can’t export more than 65,000 rows to Excel 2007. I replied with my usual professorial demeanor “What? You’re on crack!”

This is when he demonstrated these steps:

  1. Right click on the Table or Query
  2. Click Export -> Excel

     


     

  3. Click the “Export data with formatting” option
  4. Press OK

 

 

After a few gyrations, Access pops up this nasty-gram. Indeed, the table gets cut off at 65,000 lines.

 

 

Of course, being the expert I am, I immediately pointed out the issue.

The problem comes from the selection of “Export data with formatting” in Step 3.

If you uncheck this (leave it not checked), Access will export more than 65,000 rows just fine.

 

 

The reason for this isn’t all that transparent, but it’s pretty simple.

When the Export data with formatting option is checked, the windows clipboard is used. That is, Access will send the data to the Windows clipboard so that all the formatting and layout can be copied. The problem is that the old windows clipboard limits you to only 65,000 lines of data. Leaving this option unchecked allows access to simply transfer the data, bypassing the need for the windows clipboard. Problem solved.

 

He was pretty happy with this answer – although, he still wants his money back.

RELATED STUFF

  1. Using Access to Combine Multiple Excel Files: Method 1
  2. Sending Data to Excel using Access SQL
  3. Using Access to Combine Multiple Excel Files: Method 2
  4. Sending Variable Access Data To An Excel Range
  5. Running an Access Parameter Query from Excel
  6. Documenting Access Queries in Excel
  7. Easily Move Access Query Results to Excel
  8. The Benefits of a Good Technical Editor
  9. Clearing Access ImportError Tables
  10. Avoiding Data Cut-Off in Excel
Advertisement

8 Responses

  1. Kevin says:

    A better and more secure way would be to pull the data into excel via an ODBC connection to access.

    Thus nullifying the clipboard issue.

  2. PJPShred says:

    I am using Access 2007 to Excel 2007 and the first fix listed on this page is not working. If I select no formating and begin the process the window asking for the exporting formats simply closes and no export file is generated. This happens it I attempt to export it to a TXT file as well.

    I have no idea what an ODBC connection is.

    I thank you in advance for any help. How it is that this software is developed without accounting for these eventualities is beyond me.

  3. GSJAMES says:

    This does not resolve the issue at all. It still cuts off at 65535 lines.

  4. rmolin says:

    Thanks So much, it worked.. this is one of those where you feel gratitude for the internet, and people that take the time to publish this knowledge. THANKS THANKS

  5. Atul Bhosale says:

    Thanks so much for sharing this knowledge, it works perfectly.

  6. Ron says:

    Hi,
    I use a macro to run several queries to gather the correct info. Then i run the export to excel.
    But how do I switch off “export data without formatting and layout” in a macro ?

  7. Crazy Jerry says:

    ODBC is a MUCH MUCH better way to go. I linked 1,000,000 rows of data in about 30 seconds!

  8. vik patel says:

    Thanks so much for this, I was spending ages trying to figure out how to export large amounts of data from Access to Excel. This was much appreciated.

Leave a Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy this password:

* Type or paste password here:

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>