ou81aswell
Board Regular
- Joined
- Oct 6, 2009
- Messages
- 50
I'm automating Excel through COM.
I have a user who is running Excel 2010. His version of Excel is set to save files in the Excel 97 - 2003 format (*.xls) which is limited to 65,536 rows.
I have a piece of code that produces a recordset from a database and then writes it to a new sheet. Often, there are more than 65,536 rows in it.
On this user's machine my code fails when it blows past the 65,536 row limit because the new workbook it creates is in .xls format instead of .xlsx format.
Is there a way for my code to force Excel to create the new workbook in xlsx format?
I have a user who is running Excel 2010. His version of Excel is set to save files in the Excel 97 - 2003 format (*.xls) which is limited to 65,536 rows.
I have a piece of code that produces a recordset from a database and then writes it to a new sheet. Often, there are more than 65,536 rows in it.
On this user's machine my code fails when it blows past the 65,536 row limit because the new workbook it creates is in .xls format instead of .xlsx format.
Is there a way for my code to force Excel to create the new workbook in xlsx format?