Click here to Skip to main content
15,912,897 members

Comments by chadchen (Top 4 by date)

chadchen 15-Oct-14 17:06pm View    
Hi Maciej:
Yes, we do have that problem.
That's why I want to write this addin to save the result into xlsx format.
In this way it can keep 1M records.
If I output all cells value into array then merge array after that write to excel sheet. It can pass 65536 rows with no issue.
The problem is only happen with pastspecial.
The excel report contains date and time column when export to Array all the value stored in Double. I want the formatting which pastespecial works perfectly just can't pass 65536 rows.
Strange problem.
chadchen 15-Oct-14 16:33pm View    
But the array will not keep the numeric formatting for date and time. Is there a way to expand the PasteSpecial over 65536 rows?
Thank you very much for the help
chadchen 15-Oct-14 16:31pm View    
Hi Maciej: Thanks for the update. I have tried the suggestion from instruction.

In code, I use: startPasteCell.Select(); or pasteArea.PasteSpecial.
But the result is the same.

What I noticed is: The pasteSpecial method is working ok.

Just it can not pass the 65536 limits.(whenever I try to paste the second sheet, it indicates area doesn't fit. ) the behavior is very similar to when we open xls file and try to paste to 65537 row. Since I only open a new workbook I think it should be ok. If I use array then I can pass 65537 row with no issues.
chadchen 15-Oct-14 16:16pm View    
Hi Maciej:

Sorry which instruction?
Can you give a link ?

Thank you