Versions des environnements
The Save might be saving in an older format (Excel '95) by default which had a limit of 16,383 rows. Try using the SaveAs() method.
>Here's what I'm doing in steps:
>1.) ObjExcel= CREATEOBJECT("Excel.Application")
>2.) ***Build and format the spreadsheet***
>3.) ObjExcel.Range("A1").Select
> ObjExcel.ActiveWorkbook.Save
> ObjExcel.ActiveWorkbook.Close
>
>The issue is when you try manually to open the XLS afterwards, the spreadsheet gets cut off at around 16,000 rows and in my case I'm missing the last 1500 as well as totals.
>BUT, when commenting the code to SAVE and CLOSE, then hitting the 'x' and saving manually, when the spreadsheet is reopened all the data is there. Why would the code to SAVE and CLOSE cut off rows when if you did it manually it works fine?
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement