How to know how many row(or column) has information in Excel file?



Hello every body! I have a question about Excel file?

I wrote a procedure. This procedure connect to Excel file through
"tcom" & I want to know in that Excel file how many rows has
information. Can you help me a command or method to know that?

Thank you very much.
.