If your data are in a spreadsheet, you can get the number of rows with the .UsedRange.Rows.Count property.
If your data are only in a file and you are reading individual records, use a Do While not end-of-file type of logic. You don't need the number of rows. (Or if your really do, pre-process the file by counting the number of records in a do while not end-of-file loop.)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.