I am trying to use Microsoft.Office.Interop.Excel to get the row number of my excel file, which is 40424 rows.
I have tried codes below:
They only returns 38304, which is not correct. What is the correct way to get the right row number?
I am trying to use Microsoft.Office.Interop.Excel to get the row number of my excel file, which is 40424 rows.
I have tried codes below:
They only returns 38304, which is not correct. What is the correct way to get the right row number?
After I try:
Hide or show worksheets or workbooks
I found there is actualy an hiden sheet. - -!
Thank you all guys, problem solved.