Just adding to what June and dbGuy have said ... Another reason it might be important to pick one (import, to check last row) vs. the other (use Excel automation, to check last row) is because the two methods might actually give you different results..Depending on how you want to define the last row, and depending on whether the import method would actually import a lower row due to saved 'formatting' existing on a lower-but-blank row. And, the reverse can also happen. The most common technique (in Excel automation) that people use to determine the "last row" sometimes throws an unexpected result, also, due to saved 'formatting' (or the official size of a Table, despite containing blank rows).
For more information on that & my recommendation on how to protect against it, if using Excel automation,
see this.