I was about to suggest you report the problem if you think you have found a bug, but found that this was discussed on number of occasions, e.g.:
https://bitbucket.org/openpyxl/openpyxl/...han-actual
See author's comments. It looks at sheet dimensions property and obviously styles, fonts, cell format, etc. also count, not only cell content
By the way, your latest example with empty sheet works exactly as excel would do in VBA, i.e. last row on empty sheet is 1.
https://bitbucket.org/openpyxl/openpyxl/...han-actual
See author's comments. It looks at sheet dimensions property and obviously styles, fonts, cell format, etc. also count, not only cell content
By the way, your latest example with empty sheet works exactly as excel would do in VBA, i.e. last row on empty sheet is 1.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs